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