/** * Writes the tree and all its linked objects to IO * @internal */ public function write(IOInterface $io) { $io->addObject($this); foreach ($this->objects as $object) { $object[0]->write($io); } }
/** * Writes the annotated tag to IO * @param IOInterface $io The IO to write to * @internal */ public function write(IOInterface $io) { $io->addObject($this); $this->object->write($io); }
/** * Writes the commit and its dependencies to IO * @internal */ public function write(IOInterface $io) { $io->addObject($this); foreach ($this->parents as $parent) { $parent->write($io); } $this->tree->write($io); }