CronjobService

Implements \CronjobServiceInterface

Class CronjobService

package

Default

Methods

CronjobService constructor.

__construct(\CronjobRepositoryInterface $repository) 

Arguments

$repository

\CronjobRepositoryInterface

Access to cronjob data.

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(\StringType $cronjob, \KeyValueCollection $data) : void

Arguments

$cronjob

\StringType

Name of configured cronjob.

$data

\KeyValueCollection

Configuration data.

Properties

repository

repository : \CronjobRepositoryInterface