getState()->getUri(); if (!in_array($stateId, $this->getResumableStates())) { \common_Logger::w('Unexpected state "' . $stateId . '; delivery execution: ' . $deliveryExecution->getIdentifier()); throw new \common_exception_Unauthorized(); } } public function getResumableStates() { return [DeliveryExecution::STATE_ACTIVE, DeliveryExecution::STATE_PAUSED]; } }