PHP Class gossi\codegen\model\AbstractPhpMember

Author: Johannes M. Schmitt ([email protected])
Inheritance: 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
Mostrar archivo Open project: gossi/php-code-generator Class Usage Examples

Public Methods

Method Description
__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

Method Details

__construct() public method

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

getParent() public method

Returns the parent structure to which this member belongs
public getParent ( ) : AbstractPhpStruct
return AbstractPhpStruct

getVisibility() public method

Returns the visibility state of this member
public getVisibility ( ) : string
return string the visibility

isStatic() public method

Returns whether this member is static
public isStatic ( ) : boolean
return boolean `true` if static and `false` if not

setParent() public method

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

setStatic() public method

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

setVisibility() public method

Sets the members visibility
See also: self::VISIBILITY_PUBLIC
See also: self::VISIBILITY_PROTECTED
See also: self::VISIBILITY_PRIVATE
public setVisibility ( string $visibility )
$visibility string the new visibility