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();
getStartType()
Get the PersistentObject type at the start point.
__construct(array $path)
Constructor.
Persistence layer related interfaces and classes.
getEndRole()
Get the role name at the end point.
getStartRole()
Get the role name at the start point.
PathDescription describes a path between two types.
getPathLength()
Get the length of the path.
getEndType()
Get the PersistentObject type at the end point.