| 1 | <?php |
||
| 22 | class PathSegmentRegistry |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $pathSegments; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array Array of roles to pathSegments |
||
| 31 | */ |
||
| 32 | public function __construct(array $pathSegments = []) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Return the configured named path segment. |
||
| 39 | * |
||
| 40 | * @param string $name Name of path segment |
||
| 41 | * |
||
| 42 | * @throws \InvalidArgumentException |
||
| 43 | * |
||
| 44 | * @return string The path segment |
||
| 45 | */ |
||
| 46 | public function getPathSegment($name) |
||
| 62 | } |
||
| 63 |