public function value($value = null)
    {
        if (is_null($value)) {
            return empty($this->value) ? ($this->getDefault() ?? []) : $this->value;
        }

        $this->value = $value;

        return $this;
    }
public function value($value = null)
    {
        if (is_null($value)) {
            return empty($this->value) ? ($this->getDefault() ?? []) : $this->value;
        }

        $this->value = $value;

        return $this;
    }
public function value ( $ value = null ) { if ( is_null ( $ value ) ) { return empty ( $ this -> value ) ? ( $ this -> getDefault ( ) ?? [ ] ) : $ this -> value ; } $ this -> value = $ value ; return $ this ; }
Get or set value for this field.

@param mixed $value

@return $this|array|mixed
Get or set value for this field .