deliveryId = $deliveryId; $this->label = $label; $this->desc = $desc; $this->startable = $startable; } /** * Returns the id of the delivery to run * @return string */ public function getDeliveryId() { return $this->deliveryId; } /** * Returns the label of the asignment, which will often correspond * to the label of the delivery * * @return string */ public function getLabel() { /** @var DeliveryFieldsService $deliveryFieldsService */ $deliveryFieldsService = ServiceManager::getServiceManager()->get(DeliveryFieldsService::SERVICE_ID); $delivery = $this->getResource($this->getDeliveryId()); $label = $deliveryFieldsService->getLabel( $delivery, $this->label ); return $label; } /** * An array of description strings to give * enhanced informations about the assignment * and its restrictions * * @return string[] */ public function getDescriptionStrings() { return $this->desc; } /** * Whenever or not the assigment is statable * * @return boolean */ public function isStartable() { return $this->startable; } }