Exemplo n.º 1
0
 /**
  * @param $id
  * @return Customer
  */
 public function getCustomer($id)
 {
     $customer = new Customer();
     $customer->fromArray($this->get(self::ENDPOINT_CUSTOMER, [], $id));
     return $customer;
 }
 public function fromArray($data)
 {
     parent::fromArray($data);
     $this->setCreatedAt(new \DateTime($this->getCreatedAt()));
 }