* @package taoDelivery */ interface AttemptServiceInterface { const SERVICE_ID = 'taoDelivery/AttemptService'; /** * Get array of delivery finished delivery executions which should be considered as an attempt. * * @param string $deliveryId delivery identifier * @param User $user * @return DeliveryExecutionInterface[] */ public function getAttempts($deliveryId, User $user); /** * Set array of states to be excluded (execution in this state will not be considered as an attempt) * @param array $deliveryExecutionsStates */ public function setStatesToExclude(array $deliveryExecutionsStates); /** * Get array of states to be excluded */ public function getStatesToExclude(); }