src/Entity/ContentVideoMeta.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use JMS\Serializer\Annotation\Groups;
  5. /**
  6.  * @ORM\Table("VideoMeta")
  7.  *
  8.  * @ORM\Entity(repositoryClass="App\Repository\ContentVideoMetaRepository")
  9.  */
  10. class ContentVideoMeta
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      *
  15.      * @ORM\GeneratedValue()
  16.      *
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @Groups({"contentdetail"})
  22.      *
  23.      * @ORM\Column(type="decimal", precision=10, scale=0, nullable=true)
  24.      */
  25.     private $duration;
  26.     /**
  27.      * @Groups({"contentdetail"})
  28.      *
  29.      * @ORM\Column(type="integer", nullable=true)
  30.      */
  31.     private $width;
  32.     /**
  33.      * @Groups({"contentdetail"})
  34.      *
  35.      * @ORM\Column(type="integer", nullable=true)
  36.      */
  37.     private $height;
  38.     /**
  39.      * @Groups({"contentdetail"})
  40.      *
  41.      * @ORM\Column(type="decimal", precision=10, scale=3, nullable=true)
  42.      */
  43.     private $frames_per_second;
  44.     /**
  45.      * @Groups({"contentdetail"})
  46.      *
  47.      * @ORM\Column(type="decimal", precision=10, scale=3, nullable=true)
  48.      */
  49.     private $pixel_aspect_ratio;
  50.     /**
  51.      * @Groups({"contentdetail"})
  52.      *
  53.      * @ORM\Column(type="decimal", precision=10, scale=3, nullable=true)
  54.      */
  55.     private $display_aspect_ratio;
  56.     /**
  57.      * @Groups({"contentdetail"})
  58.      *
  59.      * @ORM\Column(type="array", nullable=true)
  60.      */
  61.     private $video_stream;
  62.     /**
  63.      * @Groups({"contentdetail"})
  64.      *
  65.      * @ORM\Column(type="array", nullable=true)
  66.      */
  67.     private $audio_stream;
  68.     /**
  69.      * @Groups({"contentdetail"})
  70.      *
  71.      * @ORM\Column(type="string", length=32, nullable=true)
  72.      */
  73.     private $crop_data;
  74.     /**
  75.      * @Groups({"contentdetail"})
  76.      *
  77.      * @ORM\Column(type="text", nullable=true)
  78.      */
  79.     private $raw_meta_data;
  80.     public function getId()
  81.     {
  82.         return $this->id;
  83.     }
  84.     public function getDuration()
  85.     {
  86.         return $this->duration;
  87.     }
  88.     public function setDuration($duration): self
  89.     {
  90.         $this->duration $duration;
  91.         return $this;
  92.     }
  93.     public function getWidth(): ?int
  94.     {
  95.         return $this->width;
  96.     }
  97.     public function setWidth(?int $width): self
  98.     {
  99.         $this->width $width;
  100.         return $this;
  101.     }
  102.     public function getHeight(): ?int
  103.     {
  104.         return $this->height;
  105.     }
  106.     public function setHeight(?int $height): self
  107.     {
  108.         $this->height $height;
  109.         return $this;
  110.     }
  111.     public function getFramesPerSecond(): ?float
  112.     {
  113.         return $this->frames_per_second;
  114.     }
  115.     public function setFramesPerSecond(?float $frames_per_second): self
  116.     {
  117.         // Database field can not hold larger values
  118.         if ($frames_per_second 9999999.999) {
  119.             $frames_per_second 9999999.999;
  120.         }
  121.         $this->frames_per_second $frames_per_second;
  122.         return $this;
  123.     }
  124.     public function getPixelAspectRatio(): ?float
  125.     {
  126.         return $this->pixel_aspect_ratio;
  127.     }
  128.     public function setPixelAspectRatio(?float $pixel_aspect_ratio): self
  129.     {
  130.         $this->pixel_aspect_ratio $pixel_aspect_ratio;
  131.         return $this;
  132.     }
  133.     public function getDisplayAspectRatio(): ?float
  134.     {
  135.         return $this->display_aspect_ratio;
  136.     }
  137.     public function setDisplayAspectRatio(?float $display_aspect_ratio): self
  138.     {
  139.         $this->display_aspect_ratio $display_aspect_ratio;
  140.         return $this;
  141.     }
  142.     public function getVideoStream(): ?array
  143.     {
  144.         return $this->video_stream;
  145.     }
  146.     public function setVideoStream(?array $video_stream): self
  147.     {
  148.         $this->video_stream $video_stream;
  149.         return $this;
  150.     }
  151.     public function getAudioStream()
  152.     {
  153.         return $this->audio_stream;
  154.     }
  155.     public function setAudioStream(?array $audio_stream): self
  156.     {
  157.         $this->audio_stream $audio_stream;
  158.         return $this;
  159.     }
  160.     public function getCropData(): ?string
  161.     {
  162.         return $this->crop_data;
  163.     }
  164.     public function setCropData(?string $crop_data): self
  165.     {
  166.         $this->crop_data $crop_data;
  167.         return $this;
  168.     }
  169.     public function getRawMetaData(): ?string
  170.     {
  171.         return $this->raw_meta_data;
  172.     }
  173.     public function setRawMetaData(?string $raw_meta_data): self
  174.     {
  175.         $this->raw_meta_data $raw_meta_data;
  176.         return $this;
  177.     }
  178. }