directoriesChildren = new ArrayCollection(); $this->systemBox = false; $this->userBox = false; $this->trashBox = false; } public function setDefault(string $_name, string $_type){ $this->name = $_name; $this->type = $_type; } public function getSystemBox(): ?bool { return $this->systemBox; } public function setSystemBox(bool $systemBox): self { $this->systemBox = $systemBox; return $this; } public function getUserBox(): ?bool { return $this->userBox; } public function setUserBox(bool $userBox): self { $this->userBox = $userBox; return $this; } public function getTrashBox(): ?bool { return $this->trashBox; } public function setTrashBox(bool $trashBox): self { $this->trashBox = $trashBox; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } /** * @return Collection|Directory[] */ public function getDirectoriesChildren(): Collection { return $this->directoriesChildren; } public function addDirectoriesChild(Directory $directoriesChild): self { if (!$this->directoriesChildren->contains($directoriesChild)) { $this->directoriesChildren[] = $directoriesChild; $directoriesChild->setParentBox($this); } return $this; } public function removeDirectoriesChild(Directory $directoriesChild): self { if ($this->directoriesChildren->contains($directoriesChild)) { $this->directoriesChildren->removeElement($directoriesChild); // set the owning side to null (unless already changed) if ($directoriesChild->getParentBox() === $this) { $directoriesChild->setParentBox(null); } } return $this; } public function getUser(): User { return $this->user; } public function setUser(User $user): self { $this->user = $user; return $this; } }