public function offsetGet($offset)
    {
        if (false === array_key_exists($offset, $this->container)) {
            throw OutOfBoundsException::arrayKey($offset);
        }

        if (is_callable($this->container[$offset])) {
            return $this->container[$offset]($this);
        }

        return $this->container[$offset];
    }
public function offsetGet($offset)
    {
        if (false === array_key_exists($offset, $this->container)) {
            throw OutOfBoundsException::arrayKey($offset);
        }

        if (is_callable($this->container[$offset])) {
            return $this->container[$offset]($this);
        }

        return $this->container[$offset];
    }
public function offsetGet ( $ offset ) { if ( false === array_key_exists ( $ offset , $ this -> container ) ) { throw OutOfBoundsException :: arrayKey ( $ offset ) ; } if ( is_callable ( $ this -> container [ $ offset ] ) ) { return $ this -> container [ $ offset ] ( $ this ) ; } return $ this -> container [ $ offset ] ; }
Returns the service or parameter value.

@param string $offset The service or parameter name.

@return mixed The service or parameter value.

@throws OutOfBoundsException If the name is not used.
Returns the service or parameter value .