PHP Class PhpParser\Node\Stmt\ClassLike

Inheritance: extends PhpParser\Node\Stmt
ファイルを表示 Open project: nikic/php-parser Class Usage Examples

Public Properties

Property Type Description
$name Name
$stmts Statements

Public Methods

Method 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 method

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)
return ClassMethod | null Method node or null if the method does not exist

getMethods() public method

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

Property Details

$name public_oe property

Name
public $name

$stmts public_oe property

Statements
public $stmts