<?php
namespace App\Entity;
use App\Repository\VideoRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VideoRepository::class)]
class Video
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: ProInfo::class, inversedBy: 'videos')]
private $pro;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $videoId;
#[ORM\ManyToOne(targetEntity: Course::class, inversedBy: 'videos')]
private $course;
#[ORM\Column(type: 'string', length: 255)]
private $type;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $path;
public function getId(): ?int
{
return $this->id;
}
public function getPro(): ?ProInfo
{
return $this->pro;
}
public function setPro(?ProInfo $pro): self
{
$this->pro = $pro;
return $this;
}
public function getVideoId(): ?string
{
return $this->videoId;
}
public function setVideoId(?string $videoId): self
{
$this->videoId = $videoId;
return $this;
}
public function getCourse(): ?Course
{
return $this->course;
}
public function setCourse(?Course $course): self
{
$this->course = $course;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getPath(): ?string
{
return $this->path;
}
public function setPath(?string $path): self
{
$this->path = $path;
return $this;
}
}