original_string: private function _init_user(bbn\user $user): preferences
    {
      $this->user = $user;
      $this->id_user = $this->user->get_id();
      $this->id_group = $this->user->get_group();
      return $this;
    }
code: private function _init_user(bbn\user $user): preferences
    {
      $this->user = $user;
      $this->id_user = $this->user->get_id();
      $this->id_group = $this->user->get_group();
      return $this;
    }
code_tokens: private function _init_user ( bbn \ user $ user ) : preferences { $ this -> user = $ user ; $ this -> id_user = $ this -> user -> get_id ( ) ; $ this -> id_group = $ this -> user -> get_group ( ) ; return $ this ; }
docstring: Sets the user variables using a user object
  
  @param bbn\user $user
  @return preferences
docstring_tokens: Sets the user variables using a user object