mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-09 22:13:05 -05:00
Storage: abstract class, initial implementation
This commit is contained in:
parent
7c6ca53e21
commit
7648a29c4d
1 changed files with 35 additions and 0 deletions
35
library/Bpapp/Storage/Storage.php
Normal file
35
library/Bpapp/Storage/Storage.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Bpapp\Storage;
|
||||
|
||||
use Icinga\Data\ConfigObject;
|
||||
use Icinga\Module\Bpapp\BusinessProcess;
|
||||
|
||||
abstract class Storage
|
||||
{
|
||||
protected $config;
|
||||
|
||||
public function __construct(ConfigObject $config)
|
||||
{
|
||||
$this->config = $config;
|
||||
$this->init();
|
||||
}
|
||||
|
||||
protected function init()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
abstract public function listProcesses();
|
||||
|
||||
/**
|
||||
* @return BusinessProcess
|
||||
*/
|
||||
abstract public function loadProcess($name);
|
||||
|
||||
/**
|
||||
*/
|
||||
abstract public function storeProcess(BusinessProcess $name);
|
||||
}
|
||||
Loading…
Reference in a new issue