Example #1
0
 public function __construct(UserModel $user)
 {
     $this->username = (string) $user->getUsername();
     $this->name = (string) $user->getName();
     $this->email = (string) $user->getEmail();
 }