\CronFieldFactory

CRON field factory implementing a flyweight factory

Summary

Methods
Properties
Constants
getField()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$fields
N/A

Properties

$fields

$fields : array

Type

array — Cache of instantiated fields

Methods

getField()

getField(integer  $position) : \Cron\FieldInterface

Get an instance of a field object for a cron expression position

Parameters

integer $position

CRON expression position value to retrieve

Throws

\InvalidArgumentException

if a position is not valid

Returns

\Cron\FieldInterface