public function get($fullname)
    {
        $this->initialize();

        if (!isset($this->references[$fullname])) {
            throw new ReferenceNotFoundException($fullname);
        }

        return $this->references[$fullname];
    }
public function get($fullname)
    {
        $this->initialize();

        if (!isset($this->references[$fullname])) {
            throw new ReferenceNotFoundException($fullname);
        }

        return $this->references[$fullname];
    }
public function get ( $ fullname ) { $ this -> initialize ( ) ; if ( ! isset ( $ this -> references [ $ fullname ] ) ) { throw new ReferenceNotFoundException ( $ fullname ) ; } return $ this -> references [ $ fullname ] ; }
Returns a reference, by name.

@param string $fullname Fullname of the reference (refs/heads/master, for example).

@return Reference A reference object.
Returns a reference by name .