/** * Set ProofOfDeliveryDayOfWeek value * @uses \Arkitecht\FedEx\Enums\DayOfWeekType::valueIsValid() * @uses \Arkitecht\FedEx\Enums\DayOfWeekType::getValidValues() * @param string $proofOfDeliveryDayOfWeek * @return \Arkitecht\FedEx\Structs\CommitDetail */ public function setProofOfDeliveryDayOfWeek($proofOfDeliveryDayOfWeek = null) { if (!\Arkitecht\FedEx\Enums\DayOfWeekType::valueIsValid($proofOfDeliveryDayOfWeek)) { throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $proofOfDeliveryDayOfWeek, implode(', ', \Arkitecht\FedEx\Enums\DayOfWeekType::getValidValues())), __LINE__); } $this->ProofOfDeliveryDayOfWeek = $proofOfDeliveryDayOfWeek; return $this; }
/** * Set CommitDay value * @uses \Arkitecht\FedEx\Enums\DayOfWeekType::valueIsValid() * @uses \Arkitecht\FedEx\Enums\DayOfWeekType::getValidValues() * @param string $commitDay * @return \Arkitecht\FedEx\Structs\ShipmentOperationalDetail */ public function setCommitDay($commitDay = null) { if (!\Arkitecht\FedEx\Enums\DayOfWeekType::valueIsValid($commitDay)) { throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $commitDay, implode(', ', \Arkitecht\FedEx\Enums\DayOfWeekType::getValidValues())), __LINE__); } $this->CommitDay = $commitDay; return $this; }
/** * Set LimitedServiceDays value * @uses \Arkitecht\FedEx\Enums\DayOfWeekType::valueIsValid() * @uses \Arkitecht\FedEx\Enums\DayOfWeekType::getValidValues() * @param string $limitedServiceDays * @return \Arkitecht\FedEx\Structs\FreightServiceCenterDetail */ public function setLimitedServiceDays($limitedServiceDays = null) { if (!\Arkitecht\FedEx\Enums\DayOfWeekType::valueIsValid($limitedServiceDays)) { throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $limitedServiceDays, implode(', ', \Arkitecht\FedEx\Enums\DayOfWeekType::getValidValues())), __LINE__); } $this->LimitedServiceDays = $limitedServiceDays; return $this; }