public function getValue($index = 0)
    {
        if ($index === 0 && $this->value === null) {
            return $this->defaultValue;
        }

        return (is_array($this->value) && array_key_exists($index, $this->value))
            ? $this->value[$index]
            : null;
    }
public function getValue($index = 0)
    {
        if ($index === 0 && $this->value === null) {
            return $this->defaultValue;
        }

        return (is_array($this->value) && array_key_exists($index, $this->value))
            ? $this->value[$index]
            : null;
    }
public function getValue ( $ index = 0 ) { if ( $ index === 0 && $ this -> value === null ) { return $ this -> defaultValue ; } return ( is_array ( $ this -> value ) && array_key_exists ( $ index , $ this -> value ) ) ? $ this -> value [ $ index ] : null ; }
Get a single value

@param integer $index
@return number|string|null
Get a single value