public function getReferenceValue($identifier)
    {
        $identifier = $this->getReferenceIdentifier($identifier);
        if (!array_key_exists($identifier, $this->references)) {
            throw new \Exception("No reference set with identifier '$identifier'");
        }

        return $this->references[$identifier];
    }
public function getReferenceValue($identifier)
    {
        $identifier = $this->getReferenceIdentifier($identifier);
        if (!array_key_exists($identifier, $this->references)) {
            throw new \Exception("No reference set with identifier '$identifier'");
        }

        return $this->references[$identifier];
    }
public function getReferenceValue ( $ identifier ) { $ identifier = $ this -> getReferenceIdentifier ( $ identifier ) ; if ( ! array_key_exists ( $ identifier , $ this -> references ) ) { throw new \ Exception ( "No reference set with identifier '$identifier'" ) ; } return $ this -> references [ $ identifier ] ; }
Get a stored reference

@param string $identifier format: reference:<some_custom_identifier>
@return mixed
@throws \Exception When trying to retrieve an unset reference
Get a stored reference