CronExpression::__construct()publicWC 1.0

Parse a CRON expression

Method of the class: CronExpression{}

No Hooks.

Return

null. Nothing.

Usage

$CronExpression = new CronExpression();
$CronExpression->__construct( $expression, $fieldFactory );
$expression(string) (required)
CRON expression (e.g. '8 ')
$fieldFactory(CronExpression_FieldFactory) (required)
Factory to create cron fields

CronExpression::__construct() code WC 7.3.0

public function __construct($expression, CronExpression_FieldFactory $fieldFactory)
{
    $this->fieldFactory = $fieldFactory;
    $this->setExpression($expression);
}