Add embedded video data to project resource

This commit is contained in:
2025-02-06 14:50:49 +01:00
parent a06dc9dfd8
commit 41953e2a95
4 changed files with 75 additions and 0 deletions
+18
View File
@@ -62,6 +62,12 @@ class Project implements UserOwnedInterface, AccountingOwnerInterface, Localized
#[ORM\Column(type: Types::TEXT)]
private ?string $description = null;
/**
* A video showcasing the Project.
*/
#[ORM\Embedded(class: ProjectVideo::class)]
private ?ProjectVideo $video = null;
/**
* Since Projects can be recipients of funding, they are assigned an Accounting when created.
* A Project's Accounting represents how much money the Project has raised from the community.
@@ -162,6 +168,18 @@ class Project implements UserOwnedInterface, AccountingOwnerInterface, Localized
return $this;
}
public function getVideo(): ?ProjectVideo
{
return $this->video;
}
public function setVideo(?ProjectVideo $video): static
{
$this->video = $video;
return $this;
}
public function getAccounting(): ?Accounting
{
return $this->accounting;