transitions = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } /** * @return Collection|Transitions[] */ public function getTransitions(): Collection { return $this->transitions; } public function addTransition(Transitions $transition): self { if (!$this->transitions->contains($transition)) { $this->transitions[] = $transition; } return $this; } public function removeTransition(Transitions $transition): self { if ($this->transitions->contains($transition)) { $this->transitions->removeElement($transition); } return $this; } public function getCommand(): ?string { return $this->command; } public function setCommand(string $command): self { $this->command = $command; return $this; } }