Ejemplo n.º 1
0
 public function transform(User $user)
 {
     return ['id' => (int) $user->getId(), 'first_name' => $user->getFirstName(), 'last_name' => $user->getLastName(), 'email_address' => $user->getEmailAddress(), 'published' => (bool) 1, 'date_published' => 'September 13, 2015', 'active' => (int) 1];
 }