From b8694079726acb32069f91d6d8888b2cfe494f19 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Thu, 9 Jan 2020 06:04:24 +0100 Subject: [PATCH] Made currentStage available in the API --- api/src/Entity/Request.php | 203 ++++++++++++++++++++----------------- 1 file changed, 108 insertions(+), 95 deletions(-) diff --git a/api/src/Entity/Request.php b/api/src/Entity/Request.php index 840c63d1..521a655b 100644 --- a/api/src/Entity/Request.php +++ b/api/src/Entity/Request.php @@ -379,6 +379,23 @@ class Request private $archive; /** + * @var string $currentStage The current stage of the client journey in this proces + * + * @ApiProperty( + * attributes={ + * "swagger_context"={ + * "description" = "The current stage of the client journey in this proces", + * "type"="string", + * "example"="getuigen", + * "maxLength"="255" + * } + * } + * ) + * + * @Assert\Length( + * max = 255 + * ) + * @Groups({"read","write"}) * @ORM\Column(type="string", length=255, nullable=true) */ private $currentStage; @@ -392,149 +409,145 @@ public function __construct() } public function getId() - { - return $this->id; - } + { + return $this->id; + } public function setId($id): self - { - $this->id = $id; - - return $this; - } + { + $this->id = $id; + return $this; + } public function getReference(): ?string - { - return $this->reference; - } + { + return $this->reference; + } public function setReference(string $reference): self - { - $this->reference = $reference; - - return $this; - } + { + $this->reference = $reference; + + return $this; + } public function getReferenceId(): ?int - { - return $this->reference; - } + { + return $this->reference; + } public function setReferenceId(int $referenceId): self - { - $this->referenceId = $referenceId; - - return $this; - } + { + $this->referenceId = $referenceId; + + return $this; + } public function getStatus(): ?string - { - return $this->status; - } + { + return $this->status; + } public function setStatus(string $status): self - { - $this->status = $status; - - return $this; - } + { + $this->status = $status; + + return $this; + } public function getRequestType(): ?string - { - return $this->requestType; - } + { + return $this->requestType; + } public function setRequestType(string $requestType): self - { - $this->requestType = $requestType; - - return $this; - } + { + $this->requestType = $requestType; + return $this; + } public function getTargetOrganization(): ?string - { - return $this->targetOrganization; - } + { + return $this->targetOrganization; + } public function setTargetOrganization(string $targetOrganization): self - { - $this->targetOrganization= $targetOrganization; - - return $this; - } + { + $this->targetOrganization= $targetOrganization; + return $this; + } public function getSubmitter(): ?string - { - return $this->submitter; - } + { + return $this->submitter; + } public function setSubmitter(string $submitter): self - { - $this->submitter = $submitter; + { + $this->submitter = $submitter; - return $this; - } + return $this; + } public function getSubmitterPerson(): ?bool - { - return $this->submitterPerson; - } + { + return $this->submitterPerson; + } public function setSubmitterPerson(bool $submitterPerson): self - { - $this->submitterPerson = $submitterPerson; - - return $this; - } + { + $this->submitterPerson = $submitterPerson; + + return $this; + } public function getProperties() - { - return $this->properties; - } + { + return $this->properties; + } public function setProperties($properties): self - { - $this->properties = $properties; - - return $this; - } + { + $this->properties = $properties; + return $this; + } public function getProcess(): ?string - { - return $this->process; - } + { + return $this->process; + } public function setProcess(?string $process): self - { - $this->process = $process; - - return $this; - } + { + $this->process = $process; + + return $this; + } public function getCreatedAt(): ?\DateTimeInterface - { - return $this->createdAt; - } + { + return $this->createdAt; + } public function setCreatedAt(\DateTimeInterface $createdAt): self - { - $this->createdAt = $createdAt; - - return $this; - } + { + $this->createdAt = $createdAt; + + return $this; + } public function getSubmittedAt(): ?\DateTimeInterface - { - return $this->submittedAt; - } + { + return $this->submittedAt; + } public function setSubmittedAt(\DateTimeInterface $submittedAt): self - { - $this->submittedAt = $submittedAt; - - return $this; - } + { + $this->submittedAt = $submittedAt; + + return $this; + } /** * @return Collection|Submitter[]