PHP Class Trismegiste\Mondrian\Graph\Edge

Afficher le fichier Open project: trismegiste/mondrian

Protected Properties

Свойство Type Description
$from
$to

Méthodes publiques

Méthode Description
__construct ( Vertex $from, Vertex $to ) Since edge has one source vertex and one target vertex it is builded with two vertices in its constructor
getSource ( ) : Vertex Get the source vertex
getTarget ( ) : Vertex Get the target vertex

Method Details

__construct() public méthode

Since edge has one source vertex and one target vertex it is builded with two vertices in its constructor
public __construct ( Vertex $from, Vertex $to )
$from Vertex
$to Vertex

getSource() public méthode

Get the source vertex
public getSource ( ) : Vertex
Résultat Vertex

getTarget() public méthode

Get the target vertex
public getTarget ( ) : Vertex
Résultat Vertex

Property Details

$from protected_oe property

protected $from

$to protected_oe property

protected $to