@@ 199-208 (lines=10) @@ | ||
196 | /** |
|
197 | * {@inheritdoc} |
|
198 | */ |
|
199 | public function getRootAssetMapping(Uuid $uuid) |
|
200 | { |
|
201 | $mappings = $this->findRootAssetMappings(Expr::method('getUuid', Expr::method('toString', Expr::same($uuid->toString())))); |
|
202 | ||
203 | if (!$mappings) { |
|
204 | throw NoSuchAssetMappingException::forUuid($uuid); |
|
205 | } |
|
206 | ||
207 | return reset($mappings); |
|
208 | } |
|
209 | ||
210 | /** |
|
211 | * {@inheritdoc} |
|
@@ 255-264 (lines=10) @@ | ||
252 | /** |
|
253 | * {@inheritdoc} |
|
254 | */ |
|
255 | public function getAssetMapping(Uuid $uuid) |
|
256 | { |
|
257 | $mappings = $this->findAssetMappings(Expr::method('getUuid', Expr::method('toString', Expr::same($uuid->toString())))); |
|
258 | ||
259 | if (!$mappings) { |
|
260 | throw NoSuchAssetMappingException::forUuid($uuid); |
|
261 | } |
|
262 | ||
263 | return reset($mappings); |
|
264 | } |
|
265 | ||
266 | /** |
|
267 | * {@inheritdoc} |