Class yii\apidoc\models\Context
Inheritance | yii\apidoc\models\Context » yii\base\Component |
---|---|
Available since version | 2.0 |
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$classes | yii\apidoc\models\ClassDoc[] | yii\apidoc\models\Context | |
$errors | array | yii\apidoc\models\Context | |
$files | array | List of php files that have been added to this context. | yii\apidoc\models\Context |
$interfaces | yii\apidoc\models\InterfaceDoc[] | yii\apidoc\models\Context | |
$traits | yii\apidoc\models\TraitDoc[] | yii\apidoc\models\Context | |
$warnings | array | yii\apidoc\models\Context |
Public Methods
Method | Description | Defined By |
---|---|---|
addFile() | Adds file to context | yii\apidoc\models\Context |
getType() | Returning TypeDoc for a type given | yii\apidoc\models\Context |
updateReferences() | Updates references | yii\apidoc\models\Context |
Protected Methods
Method | Description | Defined By |
---|---|---|
handlePropertyFeature() | Add properties for getters and setters if class is subclass of \yii\base\Object. | yii\apidoc\models\Context |
inheritDocs() | Inhertit docsblocks using @inheritDoc tag. |
yii\apidoc\models\Context |
isSubclassOf() | yii\apidoc\models\Context | |
updateSubInterfaceInheritance() | Add methods to subinterfaces | yii\apidoc\models\Context |
updateSubclassInheritance() | Add implemented interfaces and used traits to subclasses | yii\apidoc\models\Context |
updateSubclassInterfacesTraits() | Add implemented interfaces and used traits to subclasses | yii\apidoc\models\Context |
Property Details
Method Details
Adds file to context
public void addFile ( $fileName ) | ||
$fileName | string |
Returning TypeDoc for a type given
public null|yii\apidoc\models\ClassDoc|yii\apidoc\models\InterfaceDoc|yii\apidoc\models\TraitDoc getType ( $type ) | ||
$type | string |
Add properties for getters and setters if class is subclass of \yii\base\Object.
protected void handlePropertyFeature ( $class ) | ||
$class | yii\apidoc\models\ClassDoc |
Inhertit docsblocks using @inheritDoc
tag.
See also http://phpdoc.org/docs/latest/guides/inheritance.html.
protected void inheritDocs ( $class ) | ||
$class | yii\apidoc\models\ClassDoc |
protected boolean isSubclassOf ( $classA, $classB ) | ||
$classA | yii\apidoc\models\ClassDoc | |
$classB | yii\apidoc\models\ClassDoc|string |
Updates references
public void updateReferences ( ) |
Add methods to subinterfaces
protected void updateSubInterfaceInheritance ( $interface ) | ||
$interface |
Add implemented interfaces and used traits to subclasses
protected void updateSubclassInheritance ( $class ) | ||
$class | yii\apidoc\models\ClassDoc |
Add implemented interfaces and used traits to subclasses
protected void updateSubclassInterfacesTraits ( $class ) | ||
$class | yii\apidoc\models\ClassDoc |