src/ValueObject.php
public function getItem($key, $default = null)
    {
        if (isset($this->container[$key])) {
            return $this->container[$key];
        }

        return $default;
    }
public function getItem($key, $default = null)
    {
        if (isset($this->container[$key])) {
            return $this->container[$key];
        }

        return $default;
    }
public function getItem ( $ key , $ default = null ) { if ( isset ( $ this -> container [ $ key ] ) ) { return $ this -> container [ $ key ] ; } return $ default ; }
Gets the item value.

@param int|string $key     The key of item
@param mixed      $default Optional; null by default. The default value

@return mixed Returns the item value, if any, $default otherwise
Gets the item value .