public function offsetGet($offset)
    {
        if (gettype($offset) !== 'string') {
            $msg = "The requested offset must be a non-empty string.";
            throw new OutOfRangeException($msg);
        }

        $returnValue = null;
        $data = &$this->getDataPlaceHolder();

        if (isset($data[$offset]) === true) {
            $returnValue = $data[$offset];
        }

        return $returnValue;
    }
public function offsetGet($offset)
    {
        if (gettype($offset) !== 'string') {
            $msg = "The requested offset must be a non-empty string.";
            throw new OutOfRangeException($msg);
        }

        $returnValue = null;
        $data = &$this->getDataPlaceHolder();

        if (isset($data[$offset]) === true) {
            $returnValue = $data[$offset];
        }

        return $returnValue;
    }
public function offsetGet ( $ offset ) { if ( gettype ( $ offset ) !== 'string' ) { $ msg = "The requested offset must be a non-empty string." ; throw new OutOfRangeException ( $ msg ) ; } $ returnValue = null ; $ data = & $ this -> getDataPlaceHolder ( ) ; if ( isset ( $ data [ $ offset ] ) === true ) { $ returnValue = $ data [ $ offset ] ; } return $ returnValue ; }
Retrieve a QtiIdentifiable object from the collection.

@return \qtism\data\QtiIdentifiable|null The requested QtiIdentifiable object or null if no object with 'identifier' = $offset is found.
@throws \OutOfRangeException If the request $offset is not a string or is empty.
Retrieve a QtiIdentifiable object from the collection .