Loading src/Entity/Db/Process.php +15 −8 Changes for src/Entity/Db/Process.php: 15 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -24,16 +24,16 @@ class Process private $id; /** * @var ?DateTime * @var null|DateTime * @ORM\Column(type="datetime", nullable=true) */ private ?DateTime $dateCreated; private null|DateTime $dateCreated = null; /** * @var ?DateTime * @var null|DateTime * @ORM\Column(type="datetime", nullable=true) */ private ?DateTime $lastUpdate; private null|DateTime $lastUpdate = null; /** * @var int Loading Loading @@ -112,7 +112,7 @@ class Process /** * @return DateTime|null */ public function getDateCreated(): ?DateTime public function getDateCreated(): null|DateTime { return $this->dateCreated; } Loading @@ -120,7 +120,7 @@ class Process /** * @param DateTime|null $dateCreated */ public function setDateCreated(?DateTime $dateCreated): self public function setDateCreated(null|DateTime $dateCreated): self { $this->dateCreated = $dateCreated; return $this; Loading @@ -129,7 +129,7 @@ class Process /** * @return DateTime|null */ public function getLastUpdate(): ?DateTime public function getLastUpdate(): null|DateTime { return $this->lastUpdate; } Loading @@ -137,7 +137,7 @@ class Process /** * @param DateTime|null $lastUpdate */ public function setLastUpdate(?DateTime $lastUpdate): self public function setLastUpdate(null|DateTime $lastUpdate): self { $this->lastUpdate = $lastUpdate; return $this; Loading Loading @@ -279,6 +279,13 @@ class Process $return['lastUpdate'] = $this->getLastUpdate() ? $this->getLastUpdate()->format('Y-m-d H:i:s') : ''; $return['status'] = $this->getStatus(); $return['status_text'] = $this->getStatusText(); $order = 0; if( $this->getCurrentStep() ){ $currentStep = $this->getStep(); $order = $this->getStep()->getOrder(); } $return['current_step'] = $order; $return['total_steps'] = count($this->getSteps()); $steps = []; Loading src/Entity/Db/ProcessStep.php +1 −0 Changes for src/Entity/Db/ProcessStep.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -153,6 +153,7 @@ class ProcessStep 'label' => $this->getLabel(), 'letterfile' => $this->getLetterfileName(), 'level' => $this->getLevel(), 'order' => $this->getOrder(), 'status' => $this->getStatus(), 'status_text' => $this->getStatusText(), 'recipients' => $recipients, Loading Loading
src/Entity/Db/Process.php +15 −8 Changes for src/Entity/Db/Process.php: 15 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -24,16 +24,16 @@ class Process private $id; /** * @var ?DateTime * @var null|DateTime * @ORM\Column(type="datetime", nullable=true) */ private ?DateTime $dateCreated; private null|DateTime $dateCreated = null; /** * @var ?DateTime * @var null|DateTime * @ORM\Column(type="datetime", nullable=true) */ private ?DateTime $lastUpdate; private null|DateTime $lastUpdate = null; /** * @var int Loading Loading @@ -112,7 +112,7 @@ class Process /** * @return DateTime|null */ public function getDateCreated(): ?DateTime public function getDateCreated(): null|DateTime { return $this->dateCreated; } Loading @@ -120,7 +120,7 @@ class Process /** * @param DateTime|null $dateCreated */ public function setDateCreated(?DateTime $dateCreated): self public function setDateCreated(null|DateTime $dateCreated): self { $this->dateCreated = $dateCreated; return $this; Loading @@ -129,7 +129,7 @@ class Process /** * @return DateTime|null */ public function getLastUpdate(): ?DateTime public function getLastUpdate(): null|DateTime { return $this->lastUpdate; } Loading @@ -137,7 +137,7 @@ class Process /** * @param DateTime|null $lastUpdate */ public function setLastUpdate(?DateTime $lastUpdate): self public function setLastUpdate(null|DateTime $lastUpdate): self { $this->lastUpdate = $lastUpdate; return $this; Loading Loading @@ -279,6 +279,13 @@ class Process $return['lastUpdate'] = $this->getLastUpdate() ? $this->getLastUpdate()->format('Y-m-d H:i:s') : ''; $return['status'] = $this->getStatus(); $return['status_text'] = $this->getStatusText(); $order = 0; if( $this->getCurrentStep() ){ $currentStep = $this->getStep(); $order = $this->getStep()->getOrder(); } $return['current_step'] = $order; $return['total_steps'] = count($this->getSteps()); $steps = []; Loading
src/Entity/Db/ProcessStep.php +1 −0 Changes for src/Entity/Db/ProcessStep.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -153,6 +153,7 @@ class ProcessStep 'label' => $this->getLabel(), 'letterfile' => $this->getLetterfileName(), 'level' => $this->getLevel(), 'order' => $this->getOrder(), 'status' => $this->getStatus(), 'status_text' => $this->getStatusText(), 'recipients' => $recipients, Loading