Lines Matching refs:expression

13  * CRON expression parser that can determine whether or not a CRON expression is
14 * due to run, the next run date and previous run date of a CRON expression.
34 * @var array CRON expression parts
56 * @param string $expression The CRON expression to create. There are
58 * CRON expression:
69 public static function factory($expression, FieldFactory $fieldFactory = null)
80 if (isset($mappings[$expression])) {
81 $expression = $mappings[$expression];
84 return new static($expression, $fieldFactory ?: new FieldFactory());
90 * @param string $expression The CRON expression to validate.
92 * @return bool True if a valid CRON expression was passed. False if not.
95 public static function isValidExpression($expression)
98 self::factory($expression);
107 * Parse a CRON expression
109 * @param string $expression CRON expression (e.g. '8 * * * *')
112 public function __construct($expression, FieldFactory $fieldFactory)
115 $this->setExpression($expression);
119 * Set or change the CRON expression
121 * @param string $value CRON expression (e.g. 8 * * * *)
124 * @throws \InvalidArgumentException if not a valid CRON expression
131 $value . ' is not a valid CRON expression'
143 * Set part of the CRON expression
145 * @param int $position The position of the CRON expression to set
189 * it matches the cron expression.
205 * current date if it matches the cron expression
223 * current date if it matches the cron expression
242 * Get all or part of the CRON expression
247 * @return string|null Returns the CRON expression, a part of the
248 * CRON expression, or NULL if the part was specified but not found
262 * Helper method to output the full expression.
264 * @return string Full CRON expression
311 * Get the next or previous run date of the expression relative to a date
317 * current date if it matches the cron expression
386 throw new RuntimeException('Impossible CRON expression');