AbstractPhpMember
class AbstractPhpMember extends AbstractModel implements DocblockInterface
Abstract PHP member class.
Traits
Constants
| VISIBILITY_PRIVATE |
Private visibility |
| VISIBILITY_PROTECTED |
Protected visibility |
| VISIBILITY_PUBLIC |
Public visibility |
Methods
Returns a custom user attribute or the default value if the attribute doesn't exist
Sets the description, which will also be used when generating a docblock
Sets the long description
Creates a new member
Sets the members visibility
Returns the visibility state of this member
Sets whether or not this member is static
Returns whether this member is static
Returns the parent structure to which this member belongs
Details
in AbstractModel at line line 25
$this
setAttribute(string $key, mixed $value)
deprecated
deprecated
Sets a custom user attribute
in AbstractModel at line line 38
mixed
removeAttribute(string $key)
deprecated
deprecated
Removes and returns a custom user attribute
in AbstractModel at line line 52
mixed
getAttribute(string $key)
deprecated
deprecated
Returns a custom user attribute
in AbstractModel at line line 68
mixed
getAttributeOrElse(string $key, mixed $default)
deprecated
deprecated
Returns a custom user attribute or the default value if the attribute doesn't exist
in AbstractModel at line line 83
bool
hasAttribute(string $key)
deprecated
deprecated
Checks whether an attribute exists
in AbstractModel at line line 94
$this
setAttributes(array $attrs)
deprecated
deprecated
Sets custom user attributes
in AbstractModel at line line 106
array
getAttributes()
deprecated
deprecated
Returns all custom user attributes
in AbstractModel at line line 115
string
getDescription()
Returns this description
in AbstractModel at line line 125
$this
setDescription(string|array $description)
Sets the description, which will also be used when generating a docblock
in DocblockPart at line line 24
$this
setDocblock(Docblock|string $doc)
Sets the docblock
in DocblockPart at line line 39
Docblock
getDocblock()
Returns the docblock
in LongDescriptionPart at line line 21
string
getLongDescription()
Returns the long description
in LongDescriptionPart at line line 31
$this
setLongDescription(string $longDescription)
Sets the long description
in NamePart at line line 22
$this
setName(string $name)
Sets the name
in NamePart at line line 33
string
getName()
Returns the name
in TypePart at line line 26
$this
setType(string $type, string $description = null)
Sets the type
in TypePart at line line 41
$this
setTypeDescription(string $description)
Sets the description for the type
in TypePart at line line 51
string
getType()
Returns the type
in TypePart at line line 60
string
getTypeDescription()
Returns the type description
at line line 73
__construct(string $name)
Creates a new member
at line line 87
$this
setVisibility(string $visibility)
Sets the members visibility
at line line 104
string
getVisibility()
Returns the visibility state of this member
at line line 114
$this
setStatic(bool $bool)
Sets whether or not this member is static
at line line 125
bool
isStatic()
Returns whether this member is static
at line line 136
$this
setParent(AbstractPhpStruct|null $parent)
Sets the parent structure to which this member belongs
at line line 147
AbstractPhpStruct
getParent()
Returns the parent structure to which this member belongs