getOption(self::OPTION_PERSISTENCE) ?: 'default'; return $this->getServiceLocator()->get(\common_persistence_Manager::SERVICE_ID)->getPersistenceById($persistenceId); } /** * Put the states associated with delivery into the storage * * @param string $deliveryExecutionId * @param array $states */ abstract public function storeStates($deliveryExecutionId, $states); /** * @param string $deliveryExecutionId * @return array */ abstract public function getStates($deliveryExecutionId); /** * @param string $deliveryExecutionId * @return bool whether deleted successfully */ abstract public function deleteStates($deliveryExecutionId); }