original_string: protected function _getRoleIds()
      {
          $ids = [];
          if (!$this->has('roles')) {
              return $ids;
          }
          foreach ($this->roles as $k => $role) {
              $ids[] = $role->id;
          }
  
          return $ids;
      }
code: protected function _getRoleIds()
      {
          $ids = [];
          if (!$this->has('roles')) {
              return $ids;
          }
          foreach ($this->roles as $k => $role) {
              $ids[] = $role->id;
          }
  
          return $ids;
      }
code_tokens: protected function _getRoleIds ( ) { $ ids = [ ] ; if ( ! $ this -> has ( 'roles' ) ) { return $ ids ; } foreach ( $ this -> roles as $ k => $ role ) { $ ids [ ] = $ role -> id ; } return $ ids ; }
docstring: Gets an array list of role IDs this user belongs to.
  
  @return array
docstring_tokens: Gets an array list of role IDs this user belongs to .