/**
  * @param User $user
  * @return array
  */
 private function getLinks(User $user)
 {
     return ['_links' => [['rel' => 'self', 'uri' => '/api/public/users/' . $user->getLogin()], ['rel' => 'user.badges', 'uri' => '/api/public/users/' . $user->getLogin() . '/badges'], ['rel' => 'user.image', 'uri' => '/uploads/photos/' . $user->getAvatar()], ['rel' => 'user.official_image', 'uri' => '/uploads/photos/' . $user->getLogin() . '_official.jpg']]];
 }