src/Capsule.php
public function offsetGet($key)
    {
        if (isset($this->granules[$key])) {

            return $this->granules[$key];
        }
        throw new \OutOfBoundsException(sprintf('Granule "%s" is not defined.', $key));
    }
public function offsetGet($key)
    {
        if (isset($this->granules[$key])) {

            return $this->granules[$key];
        }
        throw new \OutOfBoundsException(sprintf('Granule "%s" is not defined.', $key));
    }
public function offsetGet ( $ key ) { if ( isset ( $ this -> granules [ $ key ] ) ) { return $ this -> granules [ $ key ] ; } throw new \ OutOfBoundsException ( sprintf ( 'Granule "%s" is not defined.' , $ key ) ) ; }
Returns a granule.

@param string $key The unique key of the granule.

@throws \OutOfBoundsException If the granule is not defined.

@return mixed
Returns a granule .