Exemplo n.º 1
0
 /**
  * Returns user profile data
  *
  * @param $id
  * @return array|null
  */
 public function getUserProfileData($id)
 {
     $userModel = $this->userStorage->getUserData($id);
     if ($userModel === null) {
         return null;
     }
     return ['email' => $userModel->email, 'created_at' => $userModel->created_at->toDateTimeString()];
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function retrieveById($identifier)
 {
     return $this->userStorage->getUserData($identifier);
 }