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;
    }
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;
    }
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 ; }
Sets field options, for dropdowns, radio lists and checkbox lists.
@param  array $value
@return self
Sets field options for dropdowns radio lists and checkbox lists .