/** * DocumentNode constructor. */ public function __construct() { parent::__construct(); $this->documents = new ArrayCollection(); $this->nodes = new ArrayCollection(); $this->depth = 1; }
/** * Document constructor. * * @param DocumentNodeInterface $node */ public function __construct(DocumentNodeInterface $node) { parent::__construct(); $this->node = $node; $this->type = DocumentInterface::TYPE_FILE; $this->enabled = true; $this->aliases = new ArrayCollection(); }