| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class PreProcessor |
||
| 8 | { |
||
| 9 | private $organizer; |
||
| 10 | private $action; |
||
| 11 | 15 | public function __construct(Organizer $organizer, Action $action) |
|
| 12 | { |
||
| 13 | 15 | $this->organizer = $organizer; |
|
| 14 | 15 | $this->action = $action; |
|
| 15 | 15 | } |
|
| 16 | |||
| 17 | 15 | public static function validate(Organizer $organizer, Action $action) |
|
| 18 | { |
||
| 19 | 15 | $instance = new self($organizer, $action); |
|
| 20 | 15 | $instance->checkExpectations(); |
|
| 21 | 12 | $instance->checkReservedKeys(); |
|
| 22 | 9 | } |
|
| 23 | |||
| 24 | 15 | private function checkExpectations() |
|
| 29 | } |
||
| 30 | 12 | } |
|
| 31 | |||
| 32 | 12 | private function checkReservedKeys() |
|
| 41 |