in src/WorkplaceSearch/Schema/ContentSourceJobTypeWindow.php [38:48]
public function __construct(string $job_type, string $day)
{
if (!in_array($job_type, ['full','incremental','delete','permissions','all'])) {
throw new InvalidArgumentException('The $job_type parameter must be one of these values: full,incremental,delete,permissions,all');
}
$this->job_type = $job_type;
if (!in_array($day, ['all','sunday','monday','tuesday','wednesday','thursday','friday','saturday'])) {
throw new InvalidArgumentException('The $day parameter must be one of these values: all,sunday,monday,tuesday,wednesday,thursday,friday,saturday');
}
$this->day = $day;
}