34 $pathSize =
sizeof(
$path);
36 $firstPathPart =
$path[0];
37 $lastPathPart =
$path[$pathSize-1];
38 $this->startType = $firstPathPart->getThisType();
39 $this->startRole = $firstPathPart->getThisRole();
40 $this->endType = $lastPathPart->getOtherType();
41 $this->endRole = $lastPathPart->getOtherRole();
getStartRole()
Get the role name at the start point.
getPathLength()
Get the length of the path.
getStartType()
Get the PersistentObject type at the start point.
Persistence layer related interfaces and classes.
getEndRole()
Get the role name at the end point.
__construct(array $path)
Constructor.
getEndType()
Get the PersistentObject type at the end point.
PathDescription describes a path between two types.