original_string: public function hasRoleByName(string $roleName): bool
      {
          if (\in_array($roleName, \array_column($this->roles, 'name'), true)) {
              return true;
          }
  
          return false;
      }
code: public function hasRoleByName(string $roleName): bool
      {
          if (\in_array($roleName, \array_column($this->roles, 'name'), true)) {
              return true;
          }
  
          return false;
      }
code_tokens: public function hasRoleByName ( string $ roleName ) : bool { if ( \ in_array ( $ roleName , \ array_column ( $ this -> roles , 'name' ) , true ) ) { return true ; } return false ; }
docstring: Check if an user has a role, use role name.
  
  @param string $roleName
  
  @return bool
docstring_tokens: Check if an user has a role use role name .