* Tous droits réservés. */ namespace Irstea\PlantUmlBundle\Model\Namespace_\Php; use Irstea\PlantUmlBundle\Model\ArrowInterface; use Irstea\PlantUmlBundle\Writer\WriterInterface; /** * Description of RootNamespace * * @author Guillaume Perréal */ class RootNamespace extends AbstractNamespace { const CONF_TYPE = 'php'; /** * @var ArrowInterface[] */ private $arrows = []; public function addArrow(ArrowInterface $arrow) { $this->arrows[] = $arrow; return $this; } public function writeTo(WriterInterface $writer) { $writer->write("set namespaceSeparator .\n"); $this ->writeNodesTo($writer) ->writeChildrenTo($writer) ->writeArrowsTo($writer); return $this; } protected function writeArrowsTo(WriterInterface $writer) { foreach ($this->arrows as $arrow) { $arrow->writeTo($writer); } return $this; } protected function getNamespacePrefix() { return ""; } public function getNodeLabel($className) { return $className; } }