original_string: public function options($value = null)
      {
          if ($value === null) {
              if (is_array($this->options)) {
                  return $this->options;
              }
              elseif (is_callable($this->options)) {
                  $callable = $this->options;
                  return $callable();
              }
  
              return [];
          }
  
          $this->options = $value;
  
          return $this;
      }
code: public function options($value = null)
      {
          if ($value === null) {
              if (is_array($this->options)) {
                  return $this->options;
              }
              elseif (is_callable($this->options)) {
                  $callable = $this->options;
                  return $callable();
              }
  
              return [];
          }
  
          $this->options = $value;
  
          return $this;
      }
code_tokens: public function options ( $ value = null ) { if ( $ value === null ) { if ( is_array ( $ this -> options ) ) { return $ this -> options ; } elseif ( is_callable ( $ this -> options ) ) { $ callable = $ this -> options ; return $ callable ( ) ; } return [ ] ; } $ this -> options = $ value ; return $ this ; }
docstring: Sets field options, for dropdowns, radio lists and checkbox lists.
  @param  array $value
  @return self
docstring_tokens: Sets field options for dropdowns radio lists and checkbox lists .