original_string: public function hasRoleById(int $roleId): bool
      {
          if (isset($this->roles[$roleId])) {
              return true;
          }
  
          return false;
      }
code: public function hasRoleById(int $roleId): bool
      {
          if (isset($this->roles[$roleId])) {
              return true;
          }
  
          return false;
      }
code_tokens: public function hasRoleById ( int $ roleId ) : bool { if ( isset ( $ this -> roles [ $ roleId ] ) ) { return true ; } return false ; }
docstring: Check if an user has a role, use role Id.
  
  @param int $roleId
  
  @return bool
docstring_tokens: Check if an user has a role use role Id .