public function addValue($value, $index = null)
    {
        if ($this->value === null) {
            $this->value = [];
        }

        if ($index === null) {
            $this->value[] = $value;
        }
        else {
            $this->value[$index] = $value;
        }

        return $this;
    }
public function addValue($value, $index = null)
    {
        if ($this->value === null) {
            $this->value = [];
        }

        if ($index === null) {
            $this->value[] = $value;
        }
        else {
            $this->value[$index] = $value;
        }

        return $this;
    }
public function addValue ( $ value , $ index = null ) { if ( $ this -> value === null ) { $ this -> value = [ ] ; } if ( $ index === null ) { $ this -> value [ ] = $ value ; } else { $ this -> value [ $ index ] = $ value ; } return $ this ; }
Add a value

@param string|number $value The value to add
@param string|integer|null $index The value key in the values array
@return \sndsgd\Field
Add a value