diff --git a/api/public/schema/openapi.yaml b/api/public/schema/openapi.yaml index 8d700002..34b155dd 100644 --- a/api/public/schema/openapi.yaml +++ b/api/public/schema/openapi.yaml @@ -1870,13 +1870,13 @@ paths: style: form explode: true - - name: requestType + name: request_type in: query required: false schema: type: string - - name: 'requestType[]' + name: 'request_type[]' in: query required: false schema: @@ -1886,13 +1886,13 @@ paths: style: form explode: true - - name: processType + name: process_type in: query required: false schema: type: string - - name: 'processType[]' + name: 'process_type[]' in: query required: false schema: @@ -1982,49 +1982,73 @@ paths: style: form explode: true - - name: 'createdAt[before]' + name: 'date_created[before]' in: query required: false schema: type: string - - name: 'createdAt[strictly_before]' + name: 'date_created[strictly_before]' in: query required: false schema: type: string - - name: 'createdAt[after]' + name: 'date_created[after]' in: query required: false schema: type: string - - name: 'createdAt[strictly_after]' + name: 'date_created[strictly_after]' in: query required: false schema: type: string - - name: 'submittedAt[before]' + name: 'date_modified[before]' in: query required: false schema: type: string - - name: 'submittedAt[strictly_before]' + name: 'date_modified[strictly_before]' in: query required: false schema: type: string - - name: 'submittedAt[after]' + name: 'date_modified[after]' in: query required: false schema: type: string - - name: 'submittedAt[strictly_after]' + name: 'date_modified[strictly_after]' + in: query + required: false + schema: + type: string + - + name: 'submitted_at[before]' + in: query + required: false + schema: + type: string + - + name: 'submitted_at[strictly_before]' + in: query + required: false + schema: + type: string + - + name: 'submitted_at[after]' + in: query + required: false + schema: + type: string + - + name: 'submitted_at[strictly_after]' in: query required: false schema: @@ -2057,7 +2081,7 @@ paths: - asc - desc - - name: 'order[requestType]' + name: 'order[request_type]' in: query required: false schema: @@ -2066,7 +2090,7 @@ paths: - asc - desc - - name: 'order[processType]' + name: 'order[process_type]' in: query required: false schema: @@ -2138,7 +2162,16 @@ paths: - asc - desc - - name: 'order[createdAt]' + name: 'order[date_created]' + in: query + required: false + schema: + type: string + enum: + - asc + - desc + - + name: 'order[date_modified]' in: query required: false schema: @@ -2147,7 +2180,7 @@ paths: - asc - desc - - name: 'order[submittedAt]' + name: 'order[submitted_at]' in: query required: false schema: @@ -3270,7 +3303,7 @@ components: nomination: description: 'The archive nomination of the resource' type: string - actionDate: + action_date: description: 'A "Y-m-d H:i:s" formatted value stating when an archive action should be made on the resource' externalDocs: url: 'http://schema.org/DateTime' @@ -3279,6 +3312,16 @@ components: status: description: 'Indication whether the resource must be permanently stored or destroyed after a certain period.' type: string + date_created: + readOnly: true + description: 'The moment this request was created' + type: string + format: date-time + date_modified: + readOnly: true + description: 'The moment this request last Modified' + type: string + format: date-time Archive-write: type: object description: '' @@ -3286,7 +3329,7 @@ components: nomination: description: 'The archive nomination of the resource' type: string - actionDate: + action_date: description: 'A "Y-m-d H:i:s" formatted value stating when an archive action should be made on the resource' externalDocs: url: 'http://schema.org/DateTime' @@ -3317,7 +3360,7 @@ components: nomination: description: 'The archive nomination of the resource' type: string - actionDate: + action_date: description: 'A "Y-m-d H:i:s" formatted value stating when an archive action should be made on the resource' externalDocs: url: 'http://schema.org/DateTime' @@ -3326,6 +3369,16 @@ components: status: description: 'Indication whether the resource must be permanently stored or destroyed after a certain period.' type: string + date_created: + readOnly: true + description: 'The moment this request was created' + type: string + format: date-time + date_modified: + readOnly: true + description: 'The moment this request last Modified' + type: string + format: date-time 'Archive:jsonld-write': type: object description: '' @@ -3342,7 +3395,7 @@ components: nomination: description: 'The archive nomination of the resource' type: string - actionDate: + action_date: description: 'A "Y-m-d H:i:s" formatted value stating when an archive action should be made on the resource' externalDocs: url: 'http://schema.org/DateTime' @@ -3369,6 +3422,16 @@ components: request: description: 'The request that this organsisation is handling' $ref: '#/components/schemas/Request-read' + date_created: + readOnly: true + description: 'The moment this request was created' + type: string + format: date-time + date_modified: + readOnly: true + description: 'The moment this request last Modified' + type: string + format: date-time required: - rsin - status @@ -3414,6 +3477,16 @@ components: request: description: 'The request that this organsisation is handling' $ref: '#/components/schemas/Request:jsonld-read' + date_created: + readOnly: true + description: 'The moment this request was created' + type: string + format: date-time + date_modified: + readOnly: true + description: 'The moment this request last Modified' + type: string + format: date-time required: - rsin - status @@ -3458,12 +3531,12 @@ components: status: description: 'The status of this request. e.g submitted' type: string - requestType: + request_type: description: 'The type of request against which this request should be validated' externalDocs: url: 'http://schema.org/url' type: string - targetOrganization: + target_organization: description: 'The RSIN of the organization that should handle this request' type: string submitter: @@ -3474,7 +3547,7 @@ components: type: array items: $ref: '#/components/schemas/Submitter-read' - submitterPerson: + submitter_person: description: 'True if the submitter is a person' type: boolean properties: @@ -3482,12 +3555,7 @@ components: type: array items: type: string - createdAt: - readOnly: true - description: 'The moment this request was created by the submitter' - type: string - format: date-time - submittedAt: + submitted_at: readOnly: true description: 'The moment this request was submitted by the submitter' type: string @@ -3497,7 +3565,7 @@ components: type: array items: $ref: '#/components/schemas/Organization-read' - requestCases: + request_cases: description: 'Any or all cases currently attached to this request' type: array items: @@ -3516,8 +3584,21 @@ components: archive: description: 'Archivation rules of this resource' $ref: '#/components/schemas/Archive-read' + current_stage: + description: 'The current stage of the client journey in this proces' + type: string + date_created: + readOnly: true + description: 'The moment this request was created' + type: string + format: date-time + date_modified: + readOnly: true + description: 'The moment this request last Modified' + type: string + format: date-time required: - - requestType + - request_type Request-write: type: object description: 'A request (or verzoek in dutch) to an organization (usually governmental) to do ''something'' on behalf of a citizen or another organization' @@ -3525,12 +3606,12 @@ components: status: description: 'The status of this request. e.g submitted' type: string - requestType: + request_type: description: 'The type of request against which this request should be validated' externalDocs: url: 'http://schema.org/url' type: string - targetOrganization: + target_organization: description: 'The RSIN of the organization that should handle this request' type: string submitter: @@ -3541,7 +3622,7 @@ components: type: array items: $ref: '#/components/schemas/Submitter-write' - submitterPerson: + submitter_person: description: 'True if the submitter is a person' type: boolean properties: @@ -3554,7 +3635,7 @@ components: type: array items: $ref: '#/components/schemas/Organization-write' - requestCases: + request_cases: description: 'Any or all cases currently attached to this request' type: array items: @@ -3573,8 +3654,11 @@ components: archive: description: 'Archivation rules of this resource' $ref: '#/components/schemas/Archive-write' + current_stage: + description: 'The current stage of the client journey in this proces' + type: string required: - - requestType + - request_type 'Request:jsonld-read': type: object description: 'A request (or verzoek in dutch) to an organization (usually governmental) to do ''something'' on behalf of a citizen or another organization' @@ -3601,12 +3685,12 @@ components: status: description: 'The status of this request. e.g submitted' type: string - requestType: + request_type: description: 'The type of request against which this request should be validated' externalDocs: url: 'http://schema.org/url' type: string - targetOrganization: + target_organization: description: 'The RSIN of the organization that should handle this request' type: string submitter: @@ -3617,7 +3701,7 @@ components: type: array items: $ref: '#/components/schemas/Submitter:jsonld-read' - submitterPerson: + submitter_person: description: 'True if the submitter is a person' type: boolean properties: @@ -3625,12 +3709,7 @@ components: type: array items: type: string - createdAt: - readOnly: true - description: 'The moment this request was created by the submitter' - type: string - format: date-time - submittedAt: + submitted_at: readOnly: true description: 'The moment this request was submitted by the submitter' type: string @@ -3640,7 +3719,7 @@ components: type: array items: $ref: '#/components/schemas/Organization:jsonld-read' - requestCases: + request_cases: description: 'Any or all cases currently attached to this request' type: array items: @@ -3659,8 +3738,21 @@ components: archive: description: 'Archivation rules of this resource' $ref: '#/components/schemas/Archive:jsonld-read' + current_stage: + description: 'The current stage of the client journey in this proces' + type: string + date_created: + readOnly: true + description: 'The moment this request was created' + type: string + format: date-time + date_modified: + readOnly: true + description: 'The moment this request last Modified' + type: string + format: date-time required: - - requestType + - request_type 'Request:jsonld-write': type: object description: 'A request (or verzoek in dutch) to an organization (usually governmental) to do ''something'' on behalf of a citizen or another organization' @@ -3677,12 +3769,12 @@ components: status: description: 'The status of this request. e.g submitted' type: string - requestType: + request_type: description: 'The type of request against which this request should be validated' externalDocs: url: 'http://schema.org/url' type: string - targetOrganization: + target_organization: description: 'The RSIN of the organization that should handle this request' type: string submitter: @@ -3693,7 +3785,7 @@ components: type: array items: $ref: '#/components/schemas/Submitter:jsonld-write' - submitterPerson: + submitter_person: description: 'True if the submitter is a person' type: boolean properties: @@ -3706,7 +3798,7 @@ components: type: array items: $ref: '#/components/schemas/Organization:jsonld-write' - requestCases: + request_cases: description: 'Any or all cases currently attached to this request' type: array items: @@ -3725,8 +3817,11 @@ components: archive: description: 'Archivation rules of this resource' $ref: '#/components/schemas/Archive:jsonld-write' + current_stage: + description: 'The current stage of the client journey in this proces' + type: string required: - - requestType + - request_type RequestCase-read: type: object description: 'An case atached to a request' @@ -3737,7 +3832,7 @@ components: externalDocs: url: 'http://schema.org/identifier' type: string - requestCase: + request_case: description: 'The OpenCase that is handling this request or supposed to handle this request' externalDocs: url: 'http://schema.org/url' @@ -3745,14 +3840,24 @@ components: request: description: 'The request that this case is handling' $ref: '#/components/schemas/Request-read' - caseNumber: + case_number: description: 'The number of an case' type: string + date_created: + readOnly: true + description: 'The moment this request was created' + type: string + format: date-time + date_modified: + readOnly: true + description: 'The moment this request last Modified' + type: string + format: date-time RequestCase-write: type: object description: 'An case atached to a request' properties: - requestCase: + request_case: description: 'The OpenCase that is handling this request or supposed to handle this request' externalDocs: url: 'http://schema.org/url' @@ -3760,7 +3865,7 @@ components: request: description: 'The request that this case is handling' $ref: '#/components/schemas/Request-write' - caseNumber: + case_number: description: 'The number of an case' type: string 'RequestCase:jsonld-read': @@ -3782,7 +3887,7 @@ components: externalDocs: url: 'http://schema.org/identifier' type: string - requestCase: + request_case: description: 'The OpenCase that is handling this request or supposed to handle this request' externalDocs: url: 'http://schema.org/url' @@ -3790,9 +3895,19 @@ components: request: description: 'The request that this case is handling' $ref: '#/components/schemas/Request:jsonld-read' - caseNumber: + case_number: description: 'The number of an case' type: string + date_created: + readOnly: true + description: 'The moment this request was created' + type: string + format: date-time + date_modified: + readOnly: true + description: 'The moment this request last Modified' + type: string + format: date-time 'RequestCase:jsonld-write': type: object description: 'An case atached to a request' @@ -3806,7 +3921,7 @@ components: '@type': readOnly: true type: string - requestCase: + request_case: description: 'The OpenCase that is handling this request or supposed to handle this request' externalDocs: url: 'http://schema.org/url' @@ -3814,7 +3929,7 @@ components: request: description: 'The request that this case is handling' $ref: '#/components/schemas/Request:jsonld-write' - caseNumber: + case_number: description: 'The number of an case' type: string Submitter-read: @@ -3843,6 +3958,16 @@ components: $ref: '#/components/schemas/Request-read' role: type: string + date_created: + readOnly: true + description: 'The moment this request was created' + type: string + format: date-time + date_modified: + readOnly: true + description: 'The moment this request last Modified' + type: string + format: date-time Submitter-write: type: object description: 'The submitters of a request' @@ -3898,6 +4023,16 @@ components: $ref: '#/components/schemas/Request:jsonld-read' role: type: string + date_created: + readOnly: true + description: 'The moment this request was created' + type: string + format: date-time + date_modified: + readOnly: true + description: 'The moment this request last Modified' + type: string + format: date-time 'Submitter:jsonld-write': type: object description: 'The submitters of a request' @@ -3938,6 +4073,8 @@ definitions: actionDate: [] status: example: to_be_archived + dateCreated: [] + dateModified: [] required: [] Archive-write: properties: @@ -3957,7 +4094,8 @@ definitions: status: example: none maxLength: 255 - createdAt: [] + dateCreated: [] + dateModified: [] request: [] required: - rsin @@ -3999,10 +4137,13 @@ definitions: example: 'http://ptc.zaakonline.nl/9bd169ef-bc8c-4422-86ce-a0e7679ab67a' format: url maxLength: 255 - createdAt: [] submittedAt: [] confidential: example: 'false' + currentStage: + maxLength: 255 + dateCreated: [] + dateModified: [] submitters: [] organizations: [] requestCases: [] @@ -4034,6 +4175,8 @@ definitions: maxLength: 255 confidential: example: 'false' + currentStage: + maxLength: 255 submitters: [] organizations: [] requestCases: [] @@ -4051,10 +4194,11 @@ definitions: example: zrc.gemeente.nl/case/e2984465-190a-4562-829e-a8cca81aa35d format: url maxLength: 255 - createdAt: [] caseNumber: example: '12345' maxLength: 255 + dateCreated: [] + dateModified: [] request: [] required: [] RequestCase-write: @@ -4087,10 +4231,11 @@ definitions: organization: example: '002851234' maxLength: 10 - createdAt: [] role: example: initiator maxLength: 255 + dateCreated: [] + dateModified: [] request: [] required: [] Submitter-write: diff --git a/api/public/schema/publiccode.yaml b/api/public/schema/publiccode.yaml index f6567284..a1d93b94 100644 --- a/api/public/schema/publiccode.yaml +++ b/api/public/schema/publiccode.yaml @@ -6,7 +6,7 @@ url: "" landingURL: "pc.zaakonline.nl" isBasedOn: "https://github.com/ConductionNL/Proto-component-commonground.git" softwareVersion: "V.0.1" -releaseDate: "2020-07-01" +releaseDate: "2020-30-01" logo: pc.zaakonline.nl monochromeLogo: img/logo-mono.svg diff --git a/api/src/Entity/Archive.php b/api/src/Entity/Archive.php index 40d1d44e..72b3fbda 100644 --- a/api/src/Entity/Archive.php +++ b/api/src/Entity/Archive.php @@ -16,6 +16,7 @@ /** * @ApiResource( + * attributes={"order"={"dateCreated": "ASC"}}, * normalizationContext={"groups"={"read"}, "enable_max_depth"=true}, * denormalizationContext={"groups"={"write"}, "enable_max_depth"=true} * ) @@ -102,6 +103,24 @@ class Archive * @ORM\Column(type="string", length=255) */ private $status = "to_be_archived"; + + /** + * @var Datetime $dateCreated The moment this request was created + * + * @Groups({"read"}) + * @Gedmo\Timestampable(on="create") + * @ORM\Column(type="datetime", nullable=true) + */ + private $dateCreated; + + /** + * @var Datetime $dateModified The moment this request last Modified + * + * @Groups({"read"}) + * @Gedmo\Timestampable(on="create") + * @ORM\Column(type="datetime", nullable=true) + */ + private $dateModified; public function getId(): ?int { @@ -143,4 +162,28 @@ public function setStatus(string $status): self return $this; } + + public function getDateCreated(): ?\DateTimeInterface + { + return $this->dateCreated; + } + + public function setDateCreated(\DateTimeInterface $dateCreated): self + { + $this->dateCreated= $dateCreated; + + return $this; + } + + public function getDateModified(): ?\DateTimeInterface + { + return $this->dateModified; + } + + public function setDateModified(\DateTimeInterface $dateModified): self + { + $this->dateModified = $dateModified; + + return $this; + } } diff --git a/api/src/Entity/Organization.php b/api/src/Entity/Organization.php index 70c0b107..08eb3aab 100644 --- a/api/src/Entity/Organization.php +++ b/api/src/Entity/Organization.php @@ -18,6 +18,7 @@ * An organization handling a request * * @ApiResource( + * attributes={"order"={"dateCreated": "ASC"}}, * normalizationContext={"groups"={"read"}, "enable_max_depth"=true}, * denormalizationContext={"groups"={"write"}, "enable_max_depth"=true} * ) @@ -111,13 +112,22 @@ class Organization private $request; /** - * @var Datetime $createdAt The moment this submitter was added to the request - * + * @var Datetime $dateCreated The moment this request was created + * * @Groups({"read"}) * @Gedmo\Timestampable(on="create") * @ORM\Column(type="datetime", nullable=true) */ - private $createdAt; + private $dateCreated; + + /** + * @var Datetime $dateModified The moment this request last Modified + * + * @Groups({"read"}) + * @Gedmo\Timestampable(on="create") + * @ORM\Column(type="datetime", nullable=true) + */ + private $dateModified; public function getId() { @@ -159,4 +169,28 @@ public function setRequest(?Request $request): self return $this; } + + public function getDateCreated(): ?\DateTimeInterface + { + return $this->dateCreated; + } + + public function setDateCreated(\DateTimeInterface $dateCreated): self + { + $this->dateCreated= $dateCreated; + + return $this; + } + + public function getDateModified(): ?\DateTimeInterface + { + return $this->dateModified; + } + + public function setDateModified(\DateTimeInterface $dateModified): self + { + $this->dateModified = $dateModified; + + return $this; + } } \ No newline at end of file diff --git a/api/src/Entity/Request.php b/api/src/Entity/Request.php index ba3411f0..ca3f0826 100644 --- a/api/src/Entity/Request.php +++ b/api/src/Entity/Request.php @@ -15,11 +15,14 @@ use Symfony\Component\Serializer\Annotation\Groups; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Serializer\Annotation\MaxDepth; +use Ramsey\Uuid\Uuid; +use Ramsey\Uuid\UuidInterface; /** * A request (or verzoek in dutch) to an organization (usually governmental) to do 'something' on behalf of a citizen or another organization * * @ApiResource( + * attributes={"order"={"dateCreated": "ASC"}}, * normalizationContext={"groups"={"read"}, "enable_max_depth"=true}, * denormalizationContext={"groups"={"write"}, "enable_max_depth"=true} * ) @@ -39,7 +42,8 @@ * "requestCases.request_case": "exact", * }) * @ApiFilter(DateFilter::class, properties={ - * "createdAt", + * "dateCreated", + * "dateModified", * "submittedAt", * }) * @ApiFilter(OrderFilter::class, properties={ @@ -56,7 +60,8 @@ * "requestCases.request_case", * "archive.nomination", * "archive.status", - * "createdAt", + * "dateCreated", + * "dateModified", * "submittedAt", * * }) @@ -295,16 +300,7 @@ class Request * @ORM\Column(type="string", length=255, nullable=true) */ private $processType; - - /** - * @var Datetime $createdAt The moment this request was created by the submitter - * - * @Groups({"read"}) - * @Gedmo\Timestampable(on="create") - * @ORM\Column(type="datetime", nullable=true) - */ - private $createdAt; - + /** * @var Datetime $submittedAt The moment this request was submitted by the submitter * @@ -399,6 +395,24 @@ class Request * @ORM\Column(type="string", length=255, nullable=true) */ private $currentStage; + + /** + * @var Datetime $dateCreated The moment this request was created + * + * @Groups({"read"}) + * @Gedmo\Timestampable(on="create") + * @ORM\Column(type="datetime", nullable=true) + */ + private $dateCreated; + + /** + * @var Datetime $dateModified The moment this request last Modified + * + * @Groups({"read"}) + * @Gedmo\Timestampable(on="create") + * @ORM\Column(type="datetime", nullable=true) + */ + private $dateModified; public function __construct() { @@ -525,18 +539,6 @@ public function setProcess(?string $process): self return $this; } - public function getCreatedAt(): ?\DateTimeInterface - { - return $this->createdAt; - } - - public function setCreatedAt(\DateTimeInterface $createdAt): self - { - $this->createdAt = $createdAt; - - return $this; - } - public function getSubmittedAt(): ?\DateTimeInterface { return $this->submittedAt; @@ -720,4 +722,28 @@ public function setCurrentStage(?string $currentStage): self return $this; } + + public function getDateCreated(): ?\DateTimeInterface + { + return $this->dateCreated; + } + + public function setDateCreated(\DateTimeInterface $dateCreated): self + { + $this->dateCreated= $dateCreated; + + return $this; + } + + public function getDateModified(): ?\DateTimeInterface + { + return $this->dateModified; + } + + public function setDateModified(\DateTimeInterface $dateModified): self + { + $this->dateModified = $dateModified; + + return $this; + } } diff --git a/api/src/Entity/RequestCase.php b/api/src/Entity/RequestCase.php index bc8ea60a..af2df068 100644 --- a/api/src/Entity/RequestCase.php +++ b/api/src/Entity/RequestCase.php @@ -18,6 +18,7 @@ * An case atached to a request * * @ApiResource( + * attributes={"order"={"dateCreated": "ASC"}}, * normalizationContext={"groups"={"read"}, "enable_max_depth"=true}, * denormalizationContext={"groups"={"write"}, "enable_max_depth"=true} * ) @@ -85,14 +86,6 @@ class RequestCase * @ORM\JoinColumn(nullable=false) */ private $request; - - /** - * @var Datetime $createdAt The moment this case was added to the request - * @Groups({"read"}) - * @Gedmo\Timestampable(on="create") - * @ORM\Column(type="datetime", nullable=true) - */ - private $createdAt; /** * @var string $caseNumber The number of an case @@ -116,6 +109,24 @@ class RequestCase * @ORM\Column(type="string", length=255, nullable=true) */ private $caseNumber; + + /** + * @var Datetime $dateCreated The moment this request was created + * + * @Groups({"read"}) + * @Gedmo\Timestampable(on="create") + * @ORM\Column(type="datetime", nullable=true) + */ + private $dateCreated; + + /** + * @var Datetime $dateModified The moment this request last Modified + * + * @Groups({"read"}) + * @Gedmo\Timestampable(on="create") + * @ORM\Column(type="datetime", nullable=true) + */ + private $dateModified; public function getId() { @@ -157,4 +168,28 @@ public function setCaseNumber(?string $caseNumber): self return $this; } + + public function getDateCreated(): ?\DateTimeInterface + { + return $this->dateCreated; + } + + public function setDateCreated(\DateTimeInterface $dateCreated): self + { + $this->dateCreated= $dateCreated; + + return $this; + } + + public function getDateModified(): ?\DateTimeInterface + { + return $this->dateModified; + } + + public function setDateModified(\DateTimeInterface $dateModified): self + { + $this->dateModified = $dateModified; + + return $this; + } } diff --git a/api/src/Entity/Submitter.php b/api/src/Entity/Submitter.php index 7c4e33cd..40efb060 100644 --- a/api/src/Entity/Submitter.php +++ b/api/src/Entity/Submitter.php @@ -18,6 +18,7 @@ * The submitters of a request * * @ApiResource( + * attributes={"order"={"dateCreated": "ASC"}}, * normalizationContext={"groups"={"read"}, "enable_max_depth"=true}, * denormalizationContext={"groups"={"write"}, "enable_max_depth"=true} * ) @@ -157,15 +158,6 @@ class Submitter * @ORM\JoinColumn(nullable=false) */ private $request; - - /** - * @var Datetime $createdAt The moment this submitter was added to the request - * - * @Groups({"read"}) - * @Gedmo\Timestampable(on="create") - * @ORM\Column(type="datetime", nullable=true) - */ - private $createdAt; /** * @param string $role The role that a party has on this request @@ -193,6 +185,24 @@ class Submitter * @ORM\Column(type="string", length=255) */ private $role = "initiator"; + + /** + * @var Datetime $dateCreated The moment this request was created + * + * @Groups({"read"}) + * @Gedmo\Timestampable(on="create") + * @ORM\Column(type="datetime", nullable=true) + */ + private $dateCreated; + + /** + * @var Datetime $dateModified The moment this request last Modified + * + * @Groups({"read"}) + * @Gedmo\Timestampable(on="create") + * @ORM\Column(type="datetime", nullable=true) + */ + private $dateModified; public function getId() { @@ -270,4 +280,28 @@ public function setRole(string $role): self return $this; } + + public function getDateCreated(): ?\DateTimeInterface + { + return $this->dateCreated; + } + + public function setDateCreated(\DateTimeInterface $dateCreated): self + { + $this->dateCreated= $dateCreated; + + return $this; + } + + public function getDateModified(): ?\DateTimeInterface + { + return $this->dateModified; + } + + public function setDateModified(\DateTimeInterface $dateModified): self + { + $this->dateModified = $dateModified; + + return $this; + } }