Example #1
0
 public function __construct(Customer $customer)
 {
     $this->id = $customer->getId();
     $this->email = $customer->getEmail();
     $this->username = $customer->getUsername();
     $this->firstname = $customer->getFirstname();
     $this->lastname = $customer->getLastname();
     $this->company = $customer->getCompany();
     $this->phone = new PhoneStruct($customer->getPhone());
 }