original_string: public function isRequired(): bool
      {
          foreach ($this->rules as $rule) {
              if ($rule instanceof RequiredRule) {
                  return true;
              }
          }
          return false;
      }
code: public function isRequired(): bool
      {
          foreach ($this->rules as $rule) {
              if ($rule instanceof RequiredRule) {
                  return true;
              }
          }
          return false;
      }
code_tokens: public function isRequired ( ) : bool { foreach ( $ this -> rules as $ rule ) { if ( $ rule instanceof RequiredRule ) { return true ; } } return false ; }
docstring: Get required flag
  
  @return bool
docstring_tokens: Get required flag