PHP Класс gossi\codegen\model\AbstractPhpMember

Автор: Johannes M. Schmitt ([email protected])
Наследование: extends AbstractModel, implements gossi\codegen\model\DocblockInterface, use trait gossi\codegen\model\parts\DocblockTrait, use trait gossi\codegen\model\parts\NameTrait, use trait gossi\codegen\model\parts\LongDescriptionTrait, use trait gossi\codegen\model\parts\TypeTrait
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( string $name ) Creates a new member
getParent ( ) : AbstractPhpStruct Returns the parent structure to which this member belongs
getVisibility ( ) : string Returns the visibility state of this member
isStatic ( ) : boolean Returns whether this member is static
setParent ( AbstractPhpStruct | null $parent ) Sets the parent structure to which this member belongs
setStatic ( boolean $bool ) Sets whether or not this member is static
setVisibility ( string $visibility ) Sets the members visibility

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

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

Creates a new member
public __construct ( string $name )
$name string the name of the member

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

Returns the parent structure to which this member belongs
public getParent ( ) : AbstractPhpStruct
Результат AbstractPhpStruct

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

Returns the visibility state of this member
public getVisibility ( ) : string
Результат string the visibility

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

Returns whether this member is static
public isStatic ( ) : boolean
Результат boolean `true` if static and `false` if not

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

Sets the parent structure to which this member belongs
public setParent ( AbstractPhpStruct | null $parent )
$parent AbstractPhpStruct | null

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

Sets whether or not this member is static
public setStatic ( boolean $bool )
$bool boolean

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

Sets the members visibility
См. также: self::VISIBILITY_PUBLIC
См. также: self::VISIBILITY_PROTECTED
См. также: self::VISIBILITY_PRIVATE
public setVisibility ( string $visibility )
$visibility string the new visibility