trait LeafTrait (View source)

Traits

Trait which describe a positioned entity

Methods

float
getPosition()

No description

$this
setPosition(float $newPosition)

Set position as a float to enable increment and decrement by O.5 to insert a node between two others.

Collection
getChildren()

No description

$this
addChild(LeafInterface $child)

No description

$this
removeChild(LeafInterface $child)

No description

getParent()

No description

$this
setParent(LeafInterface $parent = null)

No description

getParents()

Return every tag’s parents.

int
getDepth()

Gets the nodes depth.

getIterator()

{@inheritdoc}

count()

{@inheritdoc}

Details

float getPosition()

Return Value

float

$this setPosition(float $newPosition)

Set position as a float to enable increment and decrement by O.5 to insert a node between two others.

Parameters

float $newPosition

Return Value

$this

Collection getChildren()

Return Value

Collection

$this addChild(LeafInterface $child)

Parameters

LeafInterface $child

Return Value

$this

$this removeChild(LeafInterface $child)

Parameters

LeafInterface $child

Return Value

$this

LeafInterface getParent()

Return Value

LeafInterface parent

$this setParent(LeafInterface $parent = null)

Parameters

LeafInterface $parent

Return Value

$this

LeafInterface[] getParents()

Return every tag’s parents.

Return Value

LeafInterface[]

int getDepth()

Gets the nodes depth.

Return Value

int

getIterator()

{@inheritdoc}

count()

{@inheritdoc}