<?php
namespace App\Entity\InformativePills;
use App\Annotation\SiteAware;
use App\Entity\AbstractBase;
use App\Entity\Interfaces\SiteInterface;
use App\Entity\Traits\SiteTrait;
use App\Entity\User;
use App\Repository\InformativePills\InformativePillVideoPlaybackRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Table(name="vulco_informative_pill_video_playback", indexes={@ORM\Index(name="informative_pill_video_playback_site_idx", columns={"site"})})
* @ORM\Entity(repositoryClass=InformativePillVideoPlaybackRepository::class)
* @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
* @SiteAware(siteFieldName="site")
*/
class InformativePillVideoPlayback extends AbstractBase implements SiteInterface
{
use SiteTrait;
/**
* @ORM\ManyToOne(targetEntity="InformativePill", inversedBy="playbacks")
* @ORM\JoinColumn(nullable=false)
*/
private InformativePill $informativePill;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @ORM\JoinColumn(nullable=false)
*/
private User $watcher;
public function getInformativePill(): InformativePill
{
return $this->informativePill;
}
public function setInformativePill(InformativePill $informativePill): self
{
$this->informativePill = $informativePill;
return $this;
}
public function getWatcher(): User
{
return $this->watcher;
}
public function setWatcher(User $watcher): self
{
$this->watcher = $watcher;
return $this;
}
}