\Phabstractic\Data\Types\ResourceAbstractLinkedListElement

Linked List Element Abstract Class

Defines a basic linked list element class, implements LinkedListElementInterface

The idea behind this element is that it provides a reference to an element 'ahead' of itself, and a reference 'behind' itself. This gives us the ability to define a list where you can edit its contents through the nodes themselves as opposed to operations on an array.

CHANGELOG

1.0: Created AbstractList - May 10th, 2013 1.1: Eliminated todo, and other obselete/incorrect documentation - October 7th, 2013\ 2.0: Integrated into Primus - August 26th, 2015 3.0: renamed item to element in method names added element to private properties to distinguish class reformatted for inclusion in phabstractic - July 25th, 2016

Summary

Methods
Properties
Constants
getNextElement()
setNextElement()
nullNextElement()
getPreviousElement()
setPreviousElement()
nullPreviousElement()
No public properties found
No constants found
No protected methods found
$nextElement
$previousElement
N/A
No private methods found
No private properties found
N/A

Properties

$nextElement

$nextElement : null|\Phabstractic\Data\Types\Resource\Phabstractic\Data\Types\Resource\LinkedListElementInterface

The next element in the series

Type

null|\Phabstractic\Data\Types\Resource\Phabstractic\Data\Types\Resource\LinkedListElementInterface

$previousElement

$previousElement : null|\Phabstractic\Data\Types\Resource\Phabstractic\Data\Types\Resource\LinkedListElementInterface

The previous element in the series

Type

null|\Phabstractic\Data\Types\Resource\Phabstractic\Data\Types\Resource\LinkedListElementInterface

Methods

getNextElement()

getNextElement() : \Phabstractic\Data\Types\Resource\Phabstractic\Data\Types\Resource\LinkedListElementInterface

Get the next element reference

If null, at end of list

Returns

\Phabstractic\Data\Types\Resource\Phabstractic\Data\Types\Resource\LinkedListElementInterface

nullNextElement()

nullNextElement() 

Set the next element pointer to null

This does not nullify the existing linked item

getPreviousElement()

getPreviousElement() : \Phabstractic\Data\Types\Resource\Phabstractic\Data\Types\Resource\LinkedListElementInterface

Get the previous element reference

If null, at beginning of list

Returns

\Phabstractic\Data\Types\Resource\Phabstractic\Data\Types\Resource\LinkedListElementInterface

nullPreviousElement()

nullPreviousElement() 

This nulls the previous pointer for this element

Doesn't actually nullify the referenced object