PHP Class PhpParser\Node\Stmt\ClassLike

Inheritance: extends PhpParser\Node\Stmt
Afficher le fichier Open project: nikic/php-parser Class Usage Examples

Méthodes publiques

Свойство Type Description
$name Name
$stmts Statements

Méthodes publiques

Méthode Description
getMethod ( string $name ) : ClassMethod | null Gets method with the given name defined directly in this class/interface/trait.
getMethods ( ) : ClassMethod[] Gets all methods defined directly in this class/interface/trait

Method Details

getMethod() public méthode

Gets method with the given name defined directly in this class/interface/trait.
public getMethod ( string $name ) : ClassMethod | null
$name string Name of the method (compared case-insensitively)
Résultat ClassMethod | null Method node or null if the method does not exist

getMethods() public méthode

Gets all methods defined directly in this class/interface/trait
public getMethods ( ) : ClassMethod[]
Résultat ClassMethod[]

Property Details

$name public_oe property

Name
public $name

$stmts public_oe property

Statements
public $stmts