CronjobRepository
in package
implements
CronjobRepositoryInterface
Class CronjobRepository
Interfaces, Classes and Traits
- CronjobRepositoryInterface
- Interface CronjobRepositoryInterface
Table of Contents
- $reader : CronjobReaderInterface
- $settings : CronjobSettings
- $writer : CronjobWriterInterface
- __construct() : mixed
- CronjobRepository constructor.
- getAll() : CronjobCollection
- Returns all cronjobs.
- getByName() : Cronjob
- Returns a cronjob by the given identifier.
- save() : $this|CronjobRepositoryInterface
- Saves cronjob configuration into the storage.
Properties
$reader
protected
CronjobReaderInterface
$reader
$settings
protected
CronjobSettings
$settings
$writer
protected
CronjobWriterInterface
$writer
Methods
__construct()
CronjobRepository constructor.
public
__construct(CronjobReaderInterface $reader, CronjobSettings $settings, CronjobWriterInterface $writer) : mixed
Parameters
- $reader : CronjobReaderInterface
- $settings : CronjobSettings
- $writer : CronjobWriterInterface
Return values
mixed —getAll()
Returns all cronjobs.
public
getAll() : CronjobCollection
Return values
CronjobCollection —Collected cronjobs with meta data about execution.
getByName()
Returns a cronjob by the given identifier.
public
getByName(StringType $name) : Cronjob
Parameters
- $name : StringType
-
Cronjob identifier.
Return values
Cronjob —Cronjob of given identifier.
save()
Saves cronjob configuration into the storage.
public
save(CronjobInterface|StringType $cronjob, KeyValueCollection $data) : $this|CronjobRepositoryInterface
Parameters
- $cronjob : CronjobInterface|StringType
- $data : KeyValueCollection
Return values
$this|CronjobRepositoryInterface —Same instance for chained method calls.