interface LeafInterface implements IteratorAggregate, Countable, PositionedInterface (View source)

Methods

float
getPosition()

No description

setPosition(float $newPosition)

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

Collection
getChildren()

No description

addChild(LeafInterface $child)

No description

removeChild(LeafInterface $child)

No description

getParent()

No description

getParents()

No description

setParent(LeafInterface $parent = null)

No description

int
getDepth()

Gets the leaf depth.

Details

float getPosition()

Return Value

float

PositionedInterface setPosition(float $newPosition)

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

Parameters

float $newPosition

Return Value

PositionedInterface

Collection getChildren()

Return Value

Collection

LeafInterface addChild(LeafInterface $child)

Parameters

LeafInterface $child

Return Value

LeafInterface

LeafInterface removeChild(LeafInterface $child)

Parameters

LeafInterface $child

Return Value

LeafInterface

LeafInterface getParent()

Return Value

LeafInterface

LeafInterface[] getParents()

Return Value

LeafInterface[]

LeafInterface setParent(LeafInterface $parent = null)

Parameters

LeafInterface $parent

Return Value

LeafInterface

int getDepth()

Gets the leaf depth.

Return Value

int