Layton/Container.php
public function offsetGet($offset)
    {
        if (! $this->has($offset)) {
            throw new UnknownIdentifierException($offset);
        }

        if (!isset($this->_frozen[$offset])) {
            $entry = &$this->_store[$offset];
            if (is_callable($entry)) {
                $entry = $entry($this);
            }
            $this->_frozen[$offset] = &$entry;
        }

        return $this->_frozen[$offset];
    }
public function offsetGet($offset)
    {
        if (! $this->has($offset)) {
            throw new UnknownIdentifierException($offset);
        }

        if (!isset($this->_frozen[$offset])) {
            $entry = &$this->_store[$offset];
            if (is_callable($entry)) {
                $entry = $entry($this);
            }
            $this->_frozen[$offset] = &$entry;
        }

        return $this->_frozen[$offset];
    }
public function offsetGet ( $ offset ) { if ( ! $ this -> has ( $ offset ) ) { throw new UnknownIdentifierException ( $ offset ) ; } if ( ! isset ( $ this -> _frozen [ $ offset ] ) ) { $ entry = & $ this -> _store [ $ offset ] ; if ( is_callable ( $ entry ) ) { $ entry = $ entry ( $ this ) ; } $ this -> _frozen [ $ offset ] = & $ entry ; } return $ this -> _frozen [ $ offset ] ; }
Retrieve an entry to return.

@param string|integer $offset

@throws UnknownIdentifierException  No entry was found for **this** identifier.

@return mixed Entry
Retrieve an entry to return .