src/Entity/InformativePills/InformativePillVideoPlayback.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\InformativePills;
  3. use App\Annotation\SiteAware;
  4. use App\Entity\AbstractBase;
  5. use App\Entity\Interfaces\SiteInterface;
  6. use App\Entity\Traits\SiteTrait;
  7. use App\Entity\User;
  8. use App\Repository\InformativePills\InformativePillVideoPlaybackRepository;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. /**
  12.  * @ORM\Table(name="vulco_informative_pill_video_playback", indexes={@ORM\Index(name="informative_pill_video_playback_site_idx", columns={"site"})})
  13.  * @ORM\Entity(repositoryClass=InformativePillVideoPlaybackRepository::class)
  14.  * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
  15.  * @SiteAware(siteFieldName="site")
  16.  */
  17. class InformativePillVideoPlayback extends AbstractBase implements SiteInterface
  18. {
  19.     use SiteTrait;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="InformativePill", inversedBy="playbacks")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private InformativePill $informativePill;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\User")
  27.      * @ORM\JoinColumn(nullable=false)
  28.      */
  29.     private User $watcher;
  30.     public function getInformativePill(): InformativePill
  31.     {
  32.         return $this->informativePill;
  33.     }
  34.     public function setInformativePill(InformativePill $informativePill): self
  35.     {
  36.         $this->informativePill $informativePill;
  37.         return $this;
  38.     }
  39.     public function getWatcher(): User
  40.     {
  41.         return $this->watcher;
  42.     }
  43.     public function setWatcher(User $watcher): self
  44.     {
  45.         $this->watcher $watcher;
  46.         return $this;
  47.     }
  48. }