コード例 #1
0
 public function __construct(TaxRate $taxRate)
 {
     $this->entity = $taxRate;
     $this->entityDTO = new TaxRateDTO();
     $this->setId();
     $this->setTime();
     $this->entityDTO->state = $this->entity->getState();
     $this->entityDTO->zip5 = $this->entity->getZip5();
     $this->entityDTO->zip5From = $this->entity->getZip5From();
     $this->entityDTO->zip5To = $this->entity->getZip5To();
     $this->entityDTO->rate = $this->entity->getRate();
     $this->entityDTO->applyToShipping = $this->entity->getApplyToShipping();
 }