WordPress at Your Fingertips
function is not described

CronExpression::__construct() public WC 1.0

Parse a CRON expression

{} It's a 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

Code of CronExpression::__construct() WC 6.1.1

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