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
파일 보기 프로젝트 열기: gossi/php-code-generator 1 사용 예제들

공개 메소드들

메소드 설명
__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