MovementEdge
in package
FinalYes
One directed movement edge between two slots.
Table of Contents
Properties
Methods
- __construct() : mixed
- Create a directed edge between two slots.
- __toString() : string
- meta() : self
- Create a copy of the edge with merged metadata.
Properties
$attributes read-only
public
array<string|int, mixed>
$attributes
= []
$from read-only
public
Slot
$from
$label read-only
public
string|null
$label
= null
$to read-only
public
Slot
$to
Methods
__construct()
Create a directed edge between two slots.
public
__construct(Slot $from, Slot $to[, string|null $label = null ][, array<string|int, mixed> $attributes = [] ]) : mixed
Parameters
__toString()
public
__toString() : string
Return values
stringmeta()
Create a copy of the edge with merged metadata.
public
meta(array<string|int, mixed> $attributes) : self
Parameters
- $attributes : array<string|int, mixed>