public function __construct(Connection $conn, DefinitionStorage $storage, $executionId = null) { $this->conn = $conn; $this->definitionStorage = $storage; $this->options = $storage->getOptions(); if ($executionId !== null) { $this->loadExecution($executionId); } }
public function save(\ezcWorkflow $workflow) { $this->definitionStorage->save($workflow); }