@@ 412-429 (lines=18) @@ | ||
409 | /** |
|
410 | * {@inheritdoc} |
|
411 | */ |
|
412 | public function hasPathMappings(Expression $expr = null) |
|
413 | { |
|
414 | $this->assertMappingsLoaded(); |
|
415 | ||
416 | if (!$expr) { |
|
417 | return !$this->mappings->isEmpty(); |
|
418 | } |
|
419 | ||
420 | foreach ($this->mappings->toArray() as $mappingsByModule) { |
|
421 | foreach ($mappingsByModule as $mapping) { |
|
422 | if ($expr->evaluate($mapping)) { |
|
423 | return true; |
|
424 | } |
|
425 | } |
|
426 | } |
|
427 | ||
428 | return false; |
|
429 | } |
|
430 | ||
431 | /** |
|
432 | * {@inheritdoc} |
@@ 828-843 (lines=16) @@ | ||
825 | /** |
|
826 | * {@inheritdoc} |
|
827 | */ |
|
828 | public function hasBindingDescriptors(Expression $expr = null) |
|
829 | { |
|
830 | $this->assertModulesLoaded(); |
|
831 | ||
832 | if (!$expr) { |
|
833 | return !$this->bindingDescriptors->isEmpty(); |
|
834 | } |
|
835 | ||
836 | foreach ($this->bindingDescriptors->toArray() as $bindingDescriptor) { |
|
837 | if ($expr->evaluate($bindingDescriptor)) { |
|
838 | return true; |
|
839 | } |
|
840 | } |
|
841 | ||
842 | return false; |
|
843 | } |
|
844 | ||
845 | /** |
|
846 | * {@inheritdoc} |