From 20111727fe806899878285da31ccd78c362a1ab9 Mon Sep 17 00:00:00 2001 From: automatix Date: Sun, 1 Jul 2018 04:05:04 +0200 Subject: [PATCH] #5 minor property name's correction --- src/Base/Entity/Answer.php | 16 ++++++++-------- src/Base/Entity/Process.php | 16 ++++++++-------- src/Base/Entity/Task.php | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/Base/Entity/Answer.php b/src/Base/Entity/Answer.php index 3b83595..cfd2028 100644 --- a/src/Base/Entity/Answer.php +++ b/src/Base/Entity/Answer.php @@ -54,12 +54,12 @@ class Answer extends AbstractEntity * } * ) */ - private $semanticalMessageStack; + private $semanticalMessageStacks; public function __construct() { parent::__construct(); - $this->semanticalMessageStack = new ArrayCollection(); + $this->semanticalMessageStacks = new ArrayCollection(); } public function getText(): ?string @@ -98,23 +98,23 @@ public function setQuestion(?QuestionTask $question): self /** * @return Collection|SemanticalMessageStack[] */ - public function getSemanticalMessageStack(): Collection + public function getSemanticalMessageStacks(): Collection { - return $this->semanticalMessageStack; + return $this->semanticalMessageStacks; } public function addSemanticalMessageStack(SemanticalMessageStack $semanticalMessageStack): self { - if (!$this->semanticalMessageStack->contains($semanticalMessageStack)) { - $this->semanticalMessageStack[] = $semanticalMessageStack; + if (!$this->semanticalMessageStacks->contains($semanticalMessageStack)) { + $this->semanticalMessageStacks[] = $semanticalMessageStack; } return $this; } public function removeSemanticalMessageStack(SemanticalMessageStack $semanticalMessageStack): self { - if ($this->semanticalMessageStack->contains($semanticalMessageStack)) { - $this->semanticalMessageStack->removeElement($semanticalMessageStack); + if ($this->semanticalMessageStacks->contains($semanticalMessageStack)) { + $this->semanticalMessageStacks->removeElement($semanticalMessageStack); } return $this; } diff --git a/src/Base/Entity/Process.php b/src/Base/Entity/Process.php index 0122c25..5ef0b96 100644 --- a/src/Base/Entity/Process.php +++ b/src/Base/Entity/Process.php @@ -57,12 +57,12 @@ abstract class Process extends AbstractEntity * } * ) */ - private $processMessageStack; + private $processMessageStacks; public function __construct() { parent::__construct(); - $this->processMessageStack = new ArrayCollection(); + $this->processMessageStacks = new ArrayCollection(); } public function getOrder(): ?int @@ -90,23 +90,23 @@ public function setParent(?self $parent): self /** * @return Collection|ProcessMessageStack[] */ - public function getProcessMessageStack(): Collection + public function getProcessMessageStacks(): Collection { - return $this->processMessageStack; + return $this->processMessageStacks; } public function addProcessMessageStack(ProcessMessageStack $processMessageStack): self { - if (!$this->processMessageStack->contains($processMessageStack)) { - $this->processMessageStack[] = $processMessageStack; + if (!$this->processMessageStacks->contains($processMessageStack)) { + $this->processMessageStacks[] = $processMessageStack; } return $this; } public function removeProcessMessageStack(ProcessMessageStack $processMessageStack): self { - if ($this->processMessageStack->contains($processMessageStack)) { - $this->processMessageStack->removeElement($processMessageStack); + if ($this->processMessageStacks->contains($processMessageStack)) { + $this->processMessageStacks->removeElement($processMessageStack); } return $this; } diff --git a/src/Base/Entity/Task.php b/src/Base/Entity/Task.php index 8851da5..b013ca4 100644 --- a/src/Base/Entity/Task.php +++ b/src/Base/Entity/Task.php @@ -45,12 +45,12 @@ abstract class Task extends AbstractEntity * } * ) */ - private $semanticalMessageStack; + private $semanticalMessageStacks; public function __construct() { parent::__construct(); - $this->semanticalMessageStack = new ArrayCollection(); + $this->semanticalMessageStacks = new ArrayCollection(); } public function getTaskStep(): ?TaskStep @@ -67,23 +67,23 @@ public function setTaskStep(?TaskStep $taskStep): self /** * @return Collection|SemanticalMessageStack[] */ - public function getSemanticalMessageStack(): Collection + public function getSemanticalMessageStacks(): Collection { - return $this->semanticalMessageStack; + return $this->semanticalMessageStacks; } public function addSemanticalMessageStack(SemanticalMessageStack $semanticalMessageStack): self { - if (!$this->semanticalMessageStack->contains($semanticalMessageStack)) { - $this->semanticalMessageStack[] = $semanticalMessageStack; + if (!$this->semanticalMessageStacks->contains($semanticalMessageStack)) { + $this->semanticalMessageStacks[] = $semanticalMessageStack; } return $this; } public function removeSemanticalMessageStack(SemanticalMessageStack $semanticalMessageStack): self { - if ($this->semanticalMessageStack->contains($semanticalMessageStack)) { - $this->semanticalMessageStack->removeElement($semanticalMessageStack); + if ($this->semanticalMessageStacks->contains($semanticalMessageStack)) { + $this->semanticalMessageStacks->removeElement($semanticalMessageStack); } return $this; }