Add embedded video data to project resource
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user