class NodesToNodes extends AbstractEntity (View source)

Describes a complexe ManyToMany relation between two Nodes and NodeTypeFields.

Traits

Trait which describe a positioned entity

Properties

protected $id from AbstractEntity
protected $position from PositionedTrait
protected Node $nodeA
protected Node $nodeB
protected NodeTypeField $field

Methods

int
getId()

No description

setId(int $id)

No description

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.

__construct(Node $nodeA, Node $nodeB, NodeTypeField $field)

Create a new relation between two Nodes and a NodeTypeField.

__clone()

No description

getNodeA()

Gets the value of nodeA.

setNodeA(Node $nodeA)

Sets the value of nodeA.

getNodeB()

Gets the value of nodeB.

setNodeB(Node $nodeB)

Sets the value of nodeB.

getField()

Gets the value of field.

setField(NodeTypeField $field)

Sets the value of field.

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

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

__construct(Node $nodeA, Node $nodeB, NodeTypeField $field)

Create a new relation between two Nodes and a NodeTypeField.

Parameters

Node $nodeA
Node $nodeB
NodeTypeField $field NodeTypeField

__clone()

Node getNodeA()

Gets the value of nodeA.

Return Value

Node

NodesToNodes setNodeA(Node $nodeA)

Sets the value of nodeA.

Parameters

Node $nodeA the node

Return Value

NodesToNodes

Node getNodeB()

Gets the value of nodeB.

Return Value

Node

NodesToNodes setNodeB(Node $nodeB)

Sets the value of nodeB.

Parameters

Node $nodeB the node

Return Value

NodesToNodes

NodeTypeField getField()

Gets the value of field.

Return Value

NodeTypeField

NodesToNodes setField(NodeTypeField $field)

Sets the value of field.

Parameters

NodeTypeField $field the field

Return Value

NodesToNodes