Свойство | Тип | Описание | |
---|---|---|---|
$constants | PhpParser\Node\Stmt\Const_[] | Class constants | |
$extendsClass | string | null | ||
$extendsClassDefinition | |||
$filepath | string | ||
$interfaces | array | ||
$methods | Class methods | ||
$properties | PhpParser\Node\Stmt\PropertyProperty[] | Class properties | |
$propertyStatements | Property Statements | ||
$statement | |||
$type | integer |
Метод | Описание | |
---|---|---|
__construct ( string $name, |
||
addConst ( |
||
addInterface ( string $interface ) | ||
addMethod ( |
||
addProperty ( |
||
compile ( |
||
getExtendsClass ( ) : null | string | ||
getExtendsClassDefinition ( ) : null | |
||
getFilepath ( ) : string | ||
getMethod ( $name, boolean | false $inherit = false ) : |
||
getProperty ( string $name, boolean $inherit = false ) : PhpParser\Node\Stmt\PropertyProperty | ||
getPropertyStatement ( string $name, boolean $inherit = false ) : |
||
hasConst ( string $name, boolean $inherit = false ) : boolean | ||
hasMethod ( string $name, boolean | false $inherit = false ) : boolean | ||
hasProperty ( $name, boolean $inherit = false ) : boolean | ||
isAbstract ( ) : boolean | ||
isFinal ( ) : boolean | ||
mergeTrait ( |
||
setExtendsClass ( null | string $extendsClass ) | ||
setExtendsClassDefinition ( |
||
setFilepath ( string $filepath ) |
public __construct ( string $name, |
||
$name | string | |
$statement | ||
$type | integer |
public addConst ( |
||
$const |
public addProperty ( |
||
$property |
public getExtendsClass ( ) : null | string | ||
Результат | null | string |
public getExtendsClassDefinition ( ) : null | |
||
Результат | null | |
public getProperty ( string $name, boolean $inherit = false ) : PhpParser\Node\Stmt\PropertyProperty | ||
$name | string | |
$inherit | boolean | |
Результат | PhpParser\Node\Stmt\PropertyProperty |
public getPropertyStatement ( string $name, boolean $inherit = false ) : |
||
$name | string | |
$inherit | boolean | |
Результат |
public hasProperty ( $name, boolean $inherit = false ) : boolean | ||
$name | ||
$inherit | boolean | |
Результат | boolean |
public mergeTrait ( |
||
$definition | ||
$adaptations | array |
public setExtendsClass ( null | string $extendsClass ) | ||
$extendsClass | null | string |
public setExtendsClassDefinition ( |
||
$extendsClassDefinition |
protected Const_[],PhpParser\Node\Stmt $constants | ||
Результат | PhpParser\Node\Stmt\Const_[] |
protected ClassDefinition,PHPSA\Definition|null $extendsClassDefinition | ||
Результат |
protected ClassMethod[],PHPSA\Definition $methods | ||
Результат |
protected PropertyProperty[],PhpParser\Node\Stmt $properties | ||
Результат | PhpParser\Node\Stmt\PropertyProperty[] |
protected Property[],PhpParser\Node\Stmt $propertyStatements | ||
Результат |
protected Class_,PhpParser\Node\Stmt|null $statement | ||
Результат |