protected function updatesToNodes(array $updates) : array { $return = []; foreach ($updates as $up) { $return[] = new Node($up->getNodeJSON()); } return $return; }