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
@@ -0,0 +1,18 @@
<?php
namespace App\Entity\Project;
use App\Service\Embed\EmbedVideo;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Embeddable]
class ProjectVideo extends EmbedVideo
{
public function __construct(
#[ORM\Column(type: Types::STRING, nullable: true)]
public readonly string $src = '',
#[ORM\Column(type: Types::STRING, nullable: true)]
public readonly string $thumbnail = '',
) {}
}