CronjobCollection

Implements \IteratorAggregate

Class CronjobCollection

package

Default

Methods

CronjobCollection constructor.

__construct(\CronjobMetaInterface $meta, \CronjobInterface $cronjobs) 

Arguments

$meta

\CronjobMetaInterface

Meta data for cronjobs.

$cronjobs

\CronjobInterface

Cronjobs to be collected.

Named constructor of cronjob collection.

collect(\CronjobMetaInterface $meta, \CronjobInterface $cronjobs) : \CronjobCollection
static

Arguments

$meta

\CronjobMetaInterface

Meta data for cronjobs.

$cronjobs

\CronjobInterface

Cronjobs to be collected.

Response

\CronjobCollection

New instance.

Returns an array iterator of the collected cronjobs, so instances are iterable.

getIterator() : \ArrayIterator|\Traversable

Response

\ArrayIterator|\Traversable

Returns meta data about cronjobs.

getMeta() : \CronjobMetaInterface

Returns the array representation of collected cronjobs.

toArray(\ExistingDirectory $cacheDir) : array

Arguments

$cacheDir

\ExistingDirectory

Response

array

Properties

meta

meta : \CronjobMetaInterface
var

Type(s)

\CronjobMetaInterface

cronjobs

cronjobs : array<mixed,\CronjobInterface>
var

Type(s)

array<mixed,\CronjobInterface>