public function registerReference(Reference $reference)
    {
        $name = $reference->getName();
        $this->references[$name] = $reference;
    }
public function registerReference(Reference $reference)
    {
        $name = $reference->getName();
        $this->references[$name] = $reference;
    }
public function registerReference ( Reference $ reference ) { $ name = $ reference -> getName ( ) ; $ this -> references [ $ name ] = $ reference ; }
Registers a new reference
Registers a new reference