| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 3 | public function registerSchema(string $id, string $schemaResourceLocation): self |
|
| 40 | { |
||
| 41 | 3 | if ($this->hasSchema($id)) { |
|
| 42 | throw new \RuntimeException(sprintf('Schema with id "%s" already registered.', $id)); |
||
| 43 | } |
||
| 44 | |||
| 45 | 3 | $this->registeredSchemas[$id] = $schemaResourceLocation; |
|
| 46 | |||
| 47 | 3 | return $this; |
|
| 48 | } |
||
| 49 | |||
| 72 |