Skip to content

Commit

Permalink
more phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Oct 13, 2014
1 parent 40f0efe commit 812ec39
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions extensions/bootstrap/Collapse.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function run()

/**
* Renders collapsible items as specified on [[items]].
* @throws InvalidConfigException if label isn't specified
* @return string the rendering result
*/
public function renderItems()
Expand Down
3 changes: 3 additions & 0 deletions extensions/debug/models/search/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class Mail extends Base
public $file;


/**
* @inheritdoc
*/
public function rules()
{
return [
Expand Down
1 change: 1 addition & 0 deletions extensions/redis/ActiveQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ public function scalar($attribute, $db = null)
* If this parameter is not given, the `db` application component will be used.
* @param string $type the type of the script to generate
* @param string $columnName
* @throws NotSupportedException
* @return array|bool|null|string
*/
protected function executeScript($db, $type, $columnName = null)
Expand Down
17 changes: 17 additions & 0 deletions extensions/twig/ViewRendererStaticClassProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,30 @@ class ViewRendererStaticClassProxy
private $_staticClassName;


/**
* @param string $staticClassName
*/
public function __construct($staticClassName)
{
$this->_staticClassName = $staticClassName;
}

/**
* @param string $property
* @return mixed
*/
public function __get($property)
{
$class = new \ReflectionClass($this->_staticClassName);

return $class->getStaticPropertyValue($property);
}

/**
* @param string $property
* @param mixed $value
* @return mixed
*/
public function __set($property, $value)
{
$class = new \ReflectionClass($this->_staticClassName);
Expand All @@ -38,6 +50,11 @@ public function __set($property, $value)
return $value;
}

/**
* @param string $method
* @param array $arguments
* @return mixed
*/
public function __call($method, $arguments)
{
return call_user_func_array([$this->_staticClassName, $method], $arguments);
Expand Down

0 comments on commit 812ec39

Please sign in to comment.