commands = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getPosition(): ?int { return $this->position; } public function setPosition(?int $position): self { $this->position = $position; return $this; } public function getCommand(): ?string { return $this->command; } public function setCommand(?string $command): self { $this->command = $command; return $this; } public function getConfiguration(): ?Configuration { return $this->configuration; } public function setConfiguration(?Configuration $configuration): self { $this->configuration = $configuration; return $this; } public function getStartPlace(): ?Places { return $this->startPlace; } public function setStartPlace(?Places $startPlace): self { $this->startPlace = $startPlace; return $this; } public function getEndPlace(): ?Places { return $this->endPlace; } public function setEndPlace(?Places $endPlace): self { $this->endPlace = $endPlace; return $this; } /** * @return Collection|Command[] */ public function getCommands(): Collection { return $this->commands; } public function addCommand(Command $command): self { if (empty($this->commands) || !$this->commands->contains($command)) { $this->commands[] = $command; } return $this; } public function removeCommand(Command $command): self { if (!empty($this->commands) && $this->commands->contains($command)) { $this->commands->removeElement($command); } return $this; } public function getUsers(): ?array { return $this->users; } public function setUsers(?array $users): self { $this->users = $users; return $this; } }