public function testCreateByDeliveryDays() { $this->assertTrue(DeliveryMethodType::createByDeliveryDays(1)->isOneDay()); $this->assertTrue(DeliveryMethodType::createByDeliveryDays(2)->isTwoDay()); $this->assertTrue(DeliveryMethodType::createByDeliveryDays(3)->isStandard()); }
public function getDeliveryMethodType() { return DeliveryMethodType::twoDay(); }
protected function preBuild() { $this->entityDTO->isStandard = $this->entity->isStandard(); $this->entityDTO->isOneDay = $this->entity->isOneDay(); $this->entityDTO->isTwoDay = $this->entity->isTwoDay(); }
private function setupDeliveryMethod() { $this->setDeliveryMethod(DeliveryMethodType::createByDeliveryDays($this->deliveryDays)); }