private function itemSet($value, $key = null)
    {
        if (is_null($key)) {
            $this->items[] = $value;
        } else {
            $this->items[$key] = $value;
        }
    }
private function itemSet($value, $key = null)
    {
        if (is_null($key)) {
            $this->items[] = $value;
        } else {
            $this->items[$key] = $value;
        }
    }
private function itemSet ( $ value , $ key = null ) { if ( is_null ( $ key ) ) { $ this -> items [ ] = $ value ; } else { $ this -> items [ $ key ] = $ value ; } }
Set the given array value with the provided key or index.

@param mixed $value
@param mixed $key
Set the given array value with the provided key or index .