public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->user)) {
         $this->user = AuthUserResponse::make($this->user);
     }
 }
示例#2
0
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->user)) {
         $this->user = AuthUserResponse::make($this->user);
     }
     if (!empty($this->emailNode)) {
         $this->emailData = EmailResponse::make($this->emailData);
     }
     if (!empty($this->phone)) {
         $this->phone = PhoneResponse::make($this->phone);
     }
 }