Skip to content

Commit e5b7de3

Browse files
authored
[Task] Creation date can be null (#937)
* Creation date can be null * Make modificationdate nullable
1 parent 3145edb commit e5b7de3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Class/Schema/ClassDefinition.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public function __construct(
7474
#[Property(description: 'Description', type: 'string')]
7575
private readonly string $description,
7676
#[Property(description: 'Creation date timestamp', type: 'integer')]
77-
private readonly int $creationDate,
77+
private readonly ?int $creationDate,
7878
#[Property(description: 'Modification date timestamp', type: 'integer')]
79-
private readonly int $modificationDate,
79+
private readonly ?int $modificationDate,
8080
#[Property(description: 'User id of owner', type: 'integer')]
8181
private readonly int $userOwner,
8282
#[Property(description: 'Namespace of parent class', type: 'string')]
@@ -143,12 +143,12 @@ public function getTitle(): string
143143
return $this->title;
144144
}
145145

146-
public function getCreationDate(): int
146+
public function getCreationDate(): ?int
147147
{
148148
return $this->creationDate;
149149
}
150150

151-
public function getModificationDate(): int
151+
public function getModificationDate(): ?int
152152
{
153153
return $this->modificationDate;
154154
}

0 commit comments

Comments
 (0)