Ejemplo n.º 1
0
 /**
  * Turn this item object into a generic array
  *
  * @return array
  */
 public function transform(Person $person)
 {
     return ['id' => (int) $person->getId(), 'firstname' => $person->getFirstname(), 'lastname' => $person->getLastname(), 'email' => $person->getEmail(), 'organizationId' => $person->getOrganization()->getId(), 'fileCount' => $person->getNumFiles(), 'createdAt' => $person->getCreatedAt(), 'updatedAt' => $person->getUpdatedAt()];
 }