| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 77.78% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | final class CrawlAction |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $crawlAction; |
||
| 30 | |||
| 31 | 2 | public function __construct(string $crawlAction) |
|
| 32 | { |
||
| 33 | 2 | Assert::that($crawlAction) |
|
| 34 | 2 | ->inArray(['start', 'log', 'multiprocess']); |
|
| 35 | |||
| 36 | 1 | $this->crawlAction = $crawlAction; |
|
| 37 | 1 | } |
|
| 38 | |||
| 39 | 1 | public function __toString(): string |
|
| 42 | } |
||
| 43 | } |
||
| 44 |