models\Crontab\Job\Expression::setPart
Sets $value for $part. Any previous value of $part is lost.
Example: <code> $expression = new Expression(); $expression->addPart(Expression::HOUR, array(9, 12, 15)); </code> Resulting expression thus far: * 9,12,15 <code> $expression->setPart(Expression::HOUR, array(20, 22)); </code> Resulting expression thus far: * 20,22
Signature
public function setPart(string
$part,
int|string|array
$value )
Parameters
$part
— string$value
— object
Returns
- Expression