| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class HeaderValidator |
||
| 10 | { |
||
| 11 | private $rules = []; |
||
| 12 | |||
| 13 | 86 | public function addRule(string $header, string $rule): HeaderValidator |
|
| 14 | { |
||
| 15 | 86 | $this->rules[$header] = $rule; |
|
| 16 | |||
| 17 | 86 | return $this; |
|
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return array|bool |
||
| 22 | */ |
||
| 23 | 84 | public function conforms(MessageInterface $message) |
|
| 34 | } |
||
| 35 | } |
||
| 36 |