| 1 | <?php |
||
| 17 | class ArrayUriMap implements UriMapInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var array $uriMapping |
||
| 21 | */ |
||
| 22 | private $uriMapping; |
||
| 23 | /** |
||
| 24 | * @var bool $allowDefaultUris |
||
| 25 | */ |
||
| 26 | private $allowDefaultUris; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param array $uriMapping |
||
| 30 | * @param bool $allowDefaultUris |
||
| 31 | */ |
||
| 32 | public function __construct(array $uriMapping, $allowDefaultUris = true) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function getUri($resource) |
||
| 54 | } |
||
| 55 |