PHP Класс PhpParser\Node\Stmt\ClassLike

Наследование: extends PhpParser\Node\Stmt
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$name Name
$stmts Statements

Открытые методы

Метод Описание
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

Описание методов

getMethod() публичный Метод

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)
Результат ClassMethod | null Method node or null if the method does not exist

getMethods() публичный Метод

Gets all methods defined directly in this class/interface/trait
public getMethods ( ) : ClassMethod[]
Результат ClassMethod[]

Описание свойств

$name публичное свойство

Name
public $name

$stmts публичное свойство

Statements
public $stmts