in src/AppSearch/Schema/CrawlRule.php [34:46]
public function __construct(int $order, string $policy, string $rule, string $pattern)
{
$this->order = $order;
if (!in_array($policy, ['allow','deny'])) {
throw new InvalidArgumentException('The $policy parameter must be one of these values: allow,deny');
}
$this->policy = $policy;
if (!in_array($rule, ['begins','ends','contains','regex'])) {
throw new InvalidArgumentException('The $rule parameter must be one of these values: begins,ends,contains,regex');
}
$this->rule = $rule;
$this->pattern = $pattern;
}