@@ 547-554 (lines=8) @@ | ||
544 | * @throws NotLoadedException If the mapping is not loaded. |
|
545 | * @throws NotLoadedException If the mapping is not loaded. |
|
546 | */ |
|
547 | public function isEnabled() |
|
548 | { |
|
549 | if (null === $this->state) { |
|
550 | throw new NotLoadedException('The mapping is not loaded.'); |
|
551 | } |
|
552 | ||
553 | return PathMappingState::ENABLED === $this->state; |
|
554 | } |
|
555 | ||
556 | /** |
|
557 | * Returns whether the path referenced by the mapping was not found. |
|
@@ 569-576 (lines=8) @@ | ||
566 | * |
|
567 | * @see PathMappingState::NOT_FOUND |
|
568 | */ |
|
569 | public function isNotFound() |
|
570 | { |
|
571 | if (null === $this->state) { |
|
572 | throw new NotLoadedException('The mapping is not loaded.'); |
|
573 | } |
|
574 | ||
575 | return PathMappingState::NOT_FOUND === $this->state; |
|
576 | } |
|
577 | ||
578 | /** |
|
579 | * Returns whether the mapping conflicts with a mapping in another module. |
|
@@ 591-598 (lines=8) @@ | ||
588 | * |
|
589 | * @see PathMappingState::CONFLICT |
|
590 | */ |
|
591 | public function isConflicting() |
|
592 | { |
|
593 | if (null === $this->state) { |
|
594 | throw new NotLoadedException('The mapping is not loaded.'); |
|
595 | } |
|
596 | ||
597 | return PathMappingState::CONFLICT === $this->state; |
|
598 | } |
|
599 | ||
600 | private function refreshState() |
|
601 | { |