Add Document and Bibliography
This commit is contained in:
@@ -80,6 +80,8 @@ class Site implements JsonSerializable
|
||||
|
||||
private ?ArrayCollection $images;
|
||||
|
||||
private ?array $documents;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
@@ -354,6 +356,18 @@ class Site implements JsonSerializable
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDocuments(): ?array
|
||||
{
|
||||
return $this->documents;
|
||||
}
|
||||
|
||||
public function setDocuments(array $documents): static
|
||||
{
|
||||
$this->documents = $documents;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function jsonSerialize(): array
|
||||
{
|
||||
return [
|
||||
@@ -378,6 +392,7 @@ class Site implements JsonSerializable
|
||||
'shortDescription' => $this->shortDescription,
|
||||
'ownedBy' => $this->ownedBy,
|
||||
'images' => $this->images->toArray(),
|
||||
'documents' => $this->documents,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user