name = $name; $this->email = $email; } public function jsonSerialize() { return array( 'name' => $this->name, 'email' => $this->email, ); } } }