예제 #1
0
 public function setCustomerValues(Customer $customer)
 {
     if ($customer) {
         $this->get('name')->setValue($customer->getName());
         $this->get('regNo')->setValue($customer->getRegNo());
         $this->get('kmkrNo')->setValue($customer->getKmkrNo());
         $this->get('address')->setValue($customer->getAddress());
         $this->get('zip')->setValue($customer->getZip());
         $this->get('delayPercent')->setValue($customer->getDelayPercent());
         $this->get('deadlineDays')->setValue($customer->getDeadlineDays());
         $this->get('country')->setValue($customer->getCountry());
         $this->get('city')->setValue($customer->getZip());
         $this->get('url')->setValue($customer->getUrl());
         $this->get('phone')->setValue($customer->getPhone());
         $this->get('email')->setValue($customer->getEmail());
         $this->get('mob')->setValue($customer->getMob());
     }
     return $this;
 }