CronjobRepository

Implements \CronjobRepositoryInterface

Class CronjobRepository

package

Default

Methods

CronjobRepository constructor.

__construct(\CronjobReaderInterface $reader, \CronjobSettings $settings, \CronjobWriterInterface $writer) 

Returns all cronjobs.

getAll() : \CronjobCollection

Response

\CronjobCollection

Collected cronjobs with meta data about execution.

Returns a cronjob by the given identifier.

getByName(\StringType $name) : \Cronjob

Arguments

$name

\StringType

Cronjob identifier.

Response

\Cronjob

Cronjob of given identifier.

Saves cronjob configuration into the storage.

save(\CronjobInterface|\StringType $cronjob, \KeyValueCollection $data) : $this|\CronjobRepositoryInterface

Arguments

Response

$this|\CronjobRepositoryInterface

Same instance for chained method calls.

Properties

settings

settings : \CronjobSettings
var

Type(s)

\CronjobSettings

reader

reader : \CronjobReaderInterface

writer

writer : \CronjobWriterInterface