Exemplo n.º 1
0
 /**
  * DocumentNode constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->documents = new ArrayCollection();
     $this->nodes = new ArrayCollection();
     $this->depth = 1;
 }
Exemplo n.º 2
0
 /**
  * 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();
 }