Skip to content

Commit

Permalink
Update Credential.php
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-helies authored Jan 10, 2024
1 parent d11fea6 commit 0901477
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Entity/Credential.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function jsonSerialize(): mixed
"role" => $this->role,
"libelle" => $this->libelle,
"rubrique" => $this->rubrique,
"visible" => $this->visible,
"tri" => $this->tri,
"listeStatus" => $this->listeStatus,
];
Expand All @@ -52,6 +53,7 @@ public function fromArray(array $data): void
$this->libelle = $data["libelle"];
$this->rubrique = $data["rubrique"];
$this->tri = $data["tri"];
$this->visible = $data["visible"];
$this->listeStatus = $data["listeStatus"];
if (array_key_exists("createdAt", $data)) {
$this->createdAt = new \DateTimeImmutable($data["createdAt"]);
Expand Down

0 comments on commit 0901477

Please sign in to comment.