Class ClassMemberNode
A single class member in a ClassMemberListNode.
The relationship between class members and class member lists can be a bit confusing. Both of these are considered class member lists:
protected $foo; // A member list with one member.
private $bar, $baz;
The individual members in those lists are $foo, $bar, and $baz. Each of
them is a ClassMemberNode, which will render as $foo
, $bar
, and $baz
,
respectively. And each is a child of a parent ClassMemberListNode, which
has a visibility and static-ness.
ClassMemberNode's getVisibility(), setVisibility(), and is/get/setStatic() methods are actually convenience methods which call the same method on the parent member list. But the visibility and static keywords are still attributes of the list, not the individual member.
- Pharborist\Node implements Pharborist\NodeInterface
-
Pharborist\ParentNode implements Pharborist\ParentNodeInterface
-
Pharborist\Objects\ClassMemberNode
Namespace: Pharborist\Objects
See:
Located at Objects/ClassMemberNode.php
See:
Pharborist\Objects\ClassMemberListNode
Located at Objects/ClassMemberNode.php
public static
|
#
create( string $name,
Creates a new class member. |
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
__clone(),
__toString(),
acceptVisitor(),
addChild(),
addChildren(),
append(),
childCount(),
children(),
clear(),
find(),
firstChild(),
firstToken(),
getSourcePosition(),
getText(),
getTree(),
has(),
isDescendant(),
isEmpty(),
lastChild(),
lastToken(),
mergeNode(),
prepend(),
walk()
|