original_string: protected function getRules()
      {
          if ($this->rules instanceof \Closure) {
              return $this->rules->call($this, $this->form);
          }
  
          return $this->rules;
      }
code: protected function getRules()
      {
          if ($this->rules instanceof \Closure) {
              return $this->rules->call($this, $this->form);
          }
  
          return $this->rules;
      }
code_tokens: protected function getRules ( ) { if ( $ this -> rules instanceof \ Closure ) { return $ this -> rules -> call ( $ this , $ this -> form ) ; } return $ this -> rules ; }
docstring: Get field validation rules.
  
  @return string
docstring_tokens: Get field validation rules .