private function updateNodeCount(Element $node, int $addToCount): void {
        $currentScore = (int)$node->attr('gravityNodes');

        $node->attr('gravityNodes', (string)($currentScore + $addToCount));
    }
private function updateNodeCount(Element $node, int $addToCount): void {
        $currentScore = (int)$node->attr('gravityNodes');

        $node->attr('gravityNodes', (string)($currentScore + $addToCount));
    }
private function updateNodeCount ( Element $ node , int $ addToCount ) : void { $ currentScore = ( int ) $ node -> attr ( 'gravityNodes' ) ; $ node -> attr ( 'gravityNodes' , ( string ) ( $ currentScore + $ addToCount ) ) ; }
Stores how many decent nodes are under a parent node

@param Element $node
@param int $addToCount
Stores how many decent nodes are under a parent node