Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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 getExtendsClassDefinition ( ) : null | |
||
return | null | |
public getProperty ( string $name, boolean $inherit = false ) : PhpParser\Node\Stmt\PropertyProperty | ||
$name | string | |
$inherit | boolean | |
return | PhpParser\Node\Stmt\PropertyProperty |
public getPropertyStatement ( string $name, boolean $inherit = false ) : |
||
$name | string | |
$inherit | boolean | |
return |
public hasProperty ( $name, boolean $inherit = false ) : boolean | ||
$name | ||
$inherit | boolean | |
return | boolean |
public mergeTrait ( |
||
$definition | ||
$adaptations | array |
public setExtendsClass ( null | string $extendsClass ) | ||
$extendsClass | null | string |
public setExtendsClassDefinition ( |
||
$extendsClassDefinition |
protected Const_[],PhpParser\Node\Stmt $constants | ||
return | PhpParser\Node\Stmt\Const_[] |
protected ClassDefinition,PHPSA\Definition|null $extendsClassDefinition | ||
return |
protected ClassMethod[],PHPSA\Definition $methods | ||
return |
protected PropertyProperty[],PhpParser\Node\Stmt $properties | ||
return | PhpParser\Node\Stmt\PropertyProperty[] |
protected Property[],PhpParser\Node\Stmt $propertyStatements | ||
return |
protected Class_,PhpParser\Node\Stmt|null $statement | ||
return |