Property | Type | Description | |
---|---|---|---|
$children | Doctrine\Common\Collections\Collection | Child route documents. | |
$idPrefix | string | This field is not persisted in storage. | |
$name | string | PHPCR node name. | |
$parent | object | parent document. |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) | Overwrite to be able to create route without pattern. | |
generateStaticPrefix ( string $id, string $idPrefix ) : string | ||
getName ( ) | ||
getParentDocument ( ) | ||
getPath ( ) | ||
getPrefix ( ) | ||
getRouteChildren ( ) : array | Return this routes children. | |
getStaticPrefix ( ) | ||
setId ( string $id ) | PHPCR documents can be moved by setting the id to a new path. | |
setName ( string $name ) | Rename a route by setting its new name. | |
setParentDocument ( object $parent ) | Move the route by setting a parent. | |
setPath ( $pattern ) | ||
setPosition ( $parent, $name ) | Convenience method to set parent and name at the same time. | |
setPrefix ( $idPrefix ) | ||
setStaticPrefix ( $prefix ) |
Method | Description | |
---|---|---|
isBooleanOption ( $name ) |
public __construct ( array $options = [] ) | ||
$options | array |
public getRouteChildren ( ) : array | ||
return | array | - array of RouteObjectInterface's |
public getStaticPrefix ( ) |
public setParentDocument ( object $parent ) | ||
$parent | object | the new parent document |
public setPosition ( $parent, $name ) |
public setStaticPrefix ( $prefix ) |
protected Collection,Doctrine\Common\Collections $children | ||
return | Doctrine\Common\Collections\Collection |
protected string $idPrefix | ||
return | string |