transitions = new ArrayCollection(); $this->places = 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; } public function getModule(): ?string { return $this->module; } public function setModule(string $module): self { $this->module = $module; return $this; } public function getObjectId(): ?int { return $this->objectId; } public function setObjectId(?int $objectId): self { $this->objectId = $objectId; return $this; } public function getParent(): ?string { return $this->parent; } public function setParent(?string $parent): self { $this->parent = $parent; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function getAuditTrail(): ?array { return $this->auditTrail; } public function setAuditTrail(array $auditTrail): self { $this->auditTrail = $auditTrail; return $this; } public function getMarkingStore(): ?array { return $this->markingStore; } public function setMarkingStore(array $markingStore): self { $this->markingStore = $markingStore; return $this; } public function getDateStart(): ?\DateTimeInterface { return $this->dateStart; } public function setDateStart(?\DateTimeInterface $dateStart): self { $this->dateStart = $dateStart; return $this; } public function getDateEnd(): ?\DateTimeInterface { return $this->dateEnd; } public function setDateEnd(?\DateTimeInterface $dateEnd): self { $this->dateEnd = $dateEnd; 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; $transition->setConfiguration($this); } return $this; } public function removeTransition(Transitions $transition): self { if ($this->transitions->contains($transition)) { $this->transitions->removeElement($transition); // set the owning side to null (unless already changed) if ($transition->getConfiguration() === $this) { $transition->setConfiguration(null); } } return $this; } /** * @return Collection|Places[] */ public function getPlaces(): Collection { return $this->places; } public function addPlace(Places $place): self { if (!$this->places->contains($place)) { $this->places[] = $place; $place->setConfiguration($this); } return $this; } public function removePlace(Places $place): self { if ($this->places->contains($place)) { $this->places->removeElement($place); // set the owning side to null (unless already changed) if ($place->getConfiguration() === $this) { $place->setConfiguration(null); } } return $this; } public function getGenericKey(): ?string { return $this->genericKey; } public function setGenericKey(string $genericKey): self { $this->genericKey = $genericKey; return $this; } }