Commit 8a6eceb8 by Carsten Brandt

phpdoc fixes

parent 9b8372d5
...@@ -86,8 +86,8 @@ class TypeDoc extends BaseDoc ...@@ -86,8 +86,8 @@ class TypeDoc extends BaseDoc
} }
/** /**
* @param null $visibility * @param string|null $visibility
* @param null $definedBy * @param string|null $definedBy
* @return MethodDoc[] * @return MethodDoc[]
*/ */
private function getFilteredMethods($visibility = null, $definedBy = null) private function getFilteredMethods($visibility = null, $definedBy = null)
......
...@@ -53,10 +53,10 @@ abstract class BaseRenderer extends Component ...@@ -53,10 +53,10 @@ abstract class BaseRenderer extends Component
/** /**
* creates a link to a type (class, interface or trait) * creates a link to a type (class, interface or trait)
* @param ClassDoc|InterfaceDoc|TraitDoc|ClassDoc[]|InterfaceDoc[]|TraitDoc[] $types * @param ClassDoc|InterfaceDoc|TraitDoc|ClassDoc[]|InterfaceDoc[]|TraitDoc[]|string|string[] $types
* @param string $title a title to be used for the link TODO check whether [[yii\...|Class]] is supported * @param string $title a title to be used for the link TODO check whether [[yii\...|Class]] is supported
* @param BaseDoc $context * @param BaseDoc $context
* @param array $options additional HTML attributes for the link. * @param array $options additional HTML attributes for the link.
* @return string * @return string
*/ */
public function createTypeLink($types, $context = null, $title = null, $options = []) public function createTypeLink($types, $context = null, $title = null, $options = [])
......
...@@ -81,7 +81,8 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface ...@@ -81,7 +81,8 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
*/ */
private $_attributes = []; private $_attributes = [];
/** /**
* @var array old attribute values indexed by attribute names. * @var array|null old attribute values indexed by attribute names.
* This is `null` if the record [[isNewRecord|is new]].
*/ */
private $_oldAttributes; private $_oldAttributes;
/** /**
...@@ -475,7 +476,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface ...@@ -475,7 +476,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
/** /**
* Sets the old attribute values. * Sets the old attribute values.
* All existing old attribute values will be discarded. * All existing old attribute values will be discarded.
* @param array $values old attribute values to be set. * @param array|null $values old attribute values to be set.
*/ */
public function setOldAttributes($values) public function setOldAttributes($values)
{ {
...@@ -1304,8 +1305,8 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface ...@@ -1304,8 +1305,8 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
/** /**
* @param array $link * @param array $link
* @param BaseActiveRecord $foreignModel * @param ActiveRecordInterface $foreignModel
* @param BaseActiveRecord $primaryModel * @param ActiveRecordInterface $primaryModel
* @throws InvalidCallException * @throws InvalidCallException
*/ */
private function bindModels($link, $foreignModel, $primaryModel) private function bindModels($link, $foreignModel, $primaryModel)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment