public function __construct($id, $type, $startNodeId, $endNodeId, array $properties = []) { $this->id = $id; $this->type = $type; $this->startNodeIdentity = $startNodeId; $this->endNodeIdentity = $endNodeId; $this->properties = $properties; }