| 12345678910111213141516171819 | 
							- <?php
 
- namespace App\Shop\Customers\Transformations;
 
- use App\Shop\Customers\Customer;
 
- trait CustomerTransformable
 
- {
 
-     protected function transformCustomer(Customer $customer)
 
-     {
 
-         $prop = new Customer;
 
-         $prop->id = (int) $customer->id;
 
-         $prop->name = $customer->name;
 
-         $prop->email = $customer->email;
 
-         $prop->status = (int) $customer->status;
 
-         return $prop;
 
-     }
 
- }
 
 
  |