public function fetchBranch($pk, $depth=null)
    {
        $wrappers = $this->fetchBranchAsArray($pk, $depth);

        return (!is_array($wrappers) || empty($wrappers)) ? null : $wrappers[0];
    }
public function fetchBranch($pk, $depth=null)
    {
        $wrappers = $this->fetchBranchAsArray($pk, $depth);

        return (!is_array($wrappers) || empty($wrappers)) ? null : $wrappers[0];
    }
public function fetchBranch ( $ pk , $ depth = null ) { $ wrappers = $ this -> fetchBranchAsArray ( $ pk , $ depth ) ; return ( ! is_array ( $ wrappers ) || empty ( $ wrappers ) ) ? null : $ wrappers [ 0 ] ; }
Fetches a branch of a tree, returning the starting node of the branch.
All children and descendants are pre-populated.

@param mixed $pk the primary key used to locate the node to traverse
the tree from
@param int $depth the depth to retrieve or null for unlimited

@return NodeWrapper $branch
Fetches a branch of a tree returning the starting node of the branch . All children and descendants are pre - populated .