CronExpression::factory( string $expression, CronExpression_FieldFactory $fieldFactory = null )
Factory method to create a new CronExpression.
Description Description
Parameters Parameters
- $expression
-
(Required) The CRON expression to create. There are several special predefined values which can be used to substitute the CRON expression: @yearly, @annually) - Run once a year, midnight, Jan. 1 - 0 0 1 1
* @monthly - Run once a month, midnight, first of month - 0 0 1
* * @weekly - Run once a week, midnight on Sun - 0 0
* * 0 @daily - Run once a day, midnight - 0 0
* *
* @hourly - Run once an hour, first minute - 0
* *
* * - $fieldFactory
-
(Optional) (optional) Field factory to use
Default value: null
Return Return
(CronExpression)
Source Source
File: packages/action-scheduler/lib/cron-expression/CronExpression.php