public function getTree($hash)
    {
        if (!isset($this->objects[$hash])) {
            $this->objects[$hash] = new Tree($this, $hash);
        }

        return $this->objects[$hash];
    }
public function getTree($hash)
    {
        if (!isset($this->objects[$hash])) {
            $this->objects[$hash] = new Tree($this, $hash);
        }

        return $this->objects[$hash];
    }
public function getTree ( $ hash ) { if ( ! isset ( $ this -> objects [ $ hash ] ) ) { $ this -> objects [ $ hash ] = new Tree ( $ this , $ hash ) ; } return $ this -> objects [ $ hash ] ; }
Instanciates a tree object or fetches one from the cache.

@param string $hash A tree hash, with a length of 40

@return Tree
Instanciates a tree object or fetches one from the cache .