| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function validate(): void |
||
| 14 | { |
||
| 15 | Assert::that($this->getMethod())->choice(self::getMethods()); |
||
| 16 | Assert::that($this->getUri())->string()->startsWith('/'); |
||
| 17 | Assert::that($this->getBody())->isArray(); |
||
| 18 | Assert::that($this->getResponseClass())->implementsInterface(ResponseInterface::class); |
||
| 19 | Assert::that($this->getOptions())->isArray(); |
||
| 20 | } |
||
| 21 | |||
| 43 |