interface ChainElementInterface (View source)

A class implementing the ChainElementInterface can be attached to a single chain of ChainElementInterface

Methods

insertBefor(ChainElementInterface $after)

Insert the instance before the given chain link

insertAfter(ChainElementInterface $before)

Insert the instance after the given chain link.

detachElement()

Unlink the instance from its currently attached chain.

setPreviousElement(ChainElementInterface $previousElement = null)

Change the link to the element before the instance.

setNextElement(ChainElementInterface $nextElement = null)

Change the link to the element after the instance.

getNextElement()

No description

Details

insertBefor(ChainElementInterface $after)

Insert the instance before the given chain link

Parameters

ChainElementInterface $after

insertAfter(ChainElementInterface $before)

Insert the instance after the given chain link.

Parameters

ChainElementInterface $before

detachElement()

Unlink the instance from its currently attached chain.

Elements before and after the instance are linked together.

setPreviousElement(ChainElementInterface $previousElement = null)

Change the link to the element before the instance.

The previously attached link "next" element is set to NULL.

Parameters

ChainElementInterface $previousElement The new chain link which will be before the instance.

setNextElement(ChainElementInterface $nextElement = null)

Change the link to the element after the instance.

The previously attached link "previous" element is set to NULL.

Parameters

ChainElementInterface $nextElement The new chain link which will be after the instance.

ChainElementInterface|NULL getPreviousElement()

Return Value

ChainElementInterface|NULL

ChainElementInterface|NULL getNextElement()

Return Value

ChainElementInterface|NULL