getState(); $code = null; switch ($state->getUri()) { case DeliveryExecutionInterface::STATE_ACTIVE: $code = 100; break; case DeliveryExecutionInterface::STATE_PAUSED: $code = 101; break; case DeliveryExecutionInterface::STATE_FINISHED: $code = 200; break; case DeliveryExecutionInterface::STATE_TERMINATED: $code = 201; break; } return new LtiMessage('', $code); } }