| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class NamespaceNotFoundInSchemas extends OutOfRangeException implements XmlSchemaValidatorException |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | private $namespace; |
||
| 13 | |||
| 14 | 1 | private function __construct(string $message, string $namespace) |
|
| 15 | { |
||
| 16 | 1 | parent::__construct($message); |
|
| 17 | 1 | $this->namespace = $namespace; |
|
| 18 | 1 | } |
|
| 19 | |||
| 20 | 1 | public static function create(string $namespace): self |
|
| 21 | { |
||
| 22 | 1 | return new self("Namespace $namespace does not exists in the schemas", $namespace); |
|
| 23 | } |
||
| 24 | |||
| 25 | 1 | public function getNamespace(): string |
|
| 28 | } |
||
| 29 | } |
||
| 30 |