for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AOE\Crawler\Value;
use Assert\Assert;
final class CrawlAction
{
/**
* @var string
*/
private $crawlAction;
private $crawlActionLabel;
public function __construct(string $crawlAction)
Assert::that($crawlAction)
->inArray(['start', 'log', 'multiprocess']);
$this->crawlAction = $crawlAction;
}
public function __toString(): string
return $this->crawlAction;
public function getCrawlActionLabel(): string
return $this->crawlActionLabel;