PHP Class PHPSA\Definition\TraitDefinition

Inheritance: extends ParentDefinition
Afficher le fichier Open project: ovr/phpsa Class Usage Examples

Protected Properties

Свойство Type Description
$filepath string
$methods ClassMethod[]
$statement PhpParser\Node\Stmt\Trait_

Méthodes publiques

Méthode Description
__construct ( string $name, Trait_ $statement )
addMethod ( ClassMethod $method )
compile ( Context $context ) : boolean Compile the definition
getFilepath ( ) : string
getMethods ( ) : ClassMethod[]
precompile ( ) : boolean
setFilepath ( string $filepath )

Method Details

__construct() public méthode

public __construct ( string $name, Trait_ $statement )
$name string
$statement PhpParser\Node\Stmt\Trait_

addMethod() public méthode

public addMethod ( ClassMethod $method )
$method ClassMethod

compile() public méthode

Compile the definition
public compile ( Context $context ) : boolean
$context PHPSA\Context
Résultat boolean

getFilepath() public méthode

public getFilepath ( ) : string
Résultat string

getMethods() public méthode

public getMethods ( ) : ClassMethod[]
Résultat ClassMethod[]

precompile() public méthode

public precompile ( ) : boolean
Résultat boolean

setFilepath() public méthode

public setFilepath ( string $filepath )
$filepath string

Property Details

$filepath protected_oe property

protected string $filepath
Résultat string

$methods protected_oe property

protected ClassMethod[],PHPSA\Definition $methods
Résultat ClassMethod[]

$statement protected_oe property

protected Trait_,PhpParser\Node\Stmt $statement
Résultat PhpParser\Node\Stmt\Trait_