src/Entity/Media.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\MediaRepository")
  6.  */
  7. class Media
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="datetime")
  17.      */
  18.     private $time;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $title_nl;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $title_en;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      */
  30.     private $medium;
  31.     /**
  32.      * @ORM\Column(type="text")
  33.      */
  34.     private $url;
  35.     /**
  36.      * @ORM\Column(type="integer")
  37.      */
  38.     private $user_id;
  39.     /**
  40.      * @ORM\Column(type="string", length=180)
  41.      */
  42.     private $username;
  43.     /**
  44.      * @ORM\Column(type="boolean")
  45.      */
  46.     private $approved;
  47.     /**
  48.      * @ORM\Column(type="integer", nullable=true)
  49.      */
  50.     private $approved_user_id;
  51.     /**
  52.      * @ORM\Column(type="string", length=180, nullable=true)
  53.      */
  54.     private $approved_username;
  55.     public function getId(): ?int
  56.     {
  57.         return $this->id;
  58.     }
  59.     public function getTime(): ?\DateTimeInterface
  60.     {
  61.         return $this->time;
  62.     }
  63.     public function setTime(\DateTimeInterface $time): self
  64.     {
  65.         $this->time $time;
  66.         return $this;
  67.     }
  68.     public function getTitleNl(): ?string
  69.     {
  70.         return $this->title_nl;
  71.     }
  72.     public function setTitleNl(string $title_nl): self
  73.     {
  74.         $this->title_nl $title_nl;
  75.         return $this;
  76.     }
  77.     public function getTitleEn(): ?string
  78.     {
  79.         return $this->title_en;
  80.     }
  81.     public function setTitleEn(string $title_en): self
  82.     {
  83.         $this->title_en $title_en;
  84.         return $this;
  85.     }
  86.     public function getMedium(): ?string
  87.     {
  88.         return $this->medium;
  89.     }
  90.     public function setMedium(string $medium): self
  91.     {
  92.         $this->medium $medium;
  93.         return $this;
  94.     }
  95.     public function getUrl(): ?string
  96.     {
  97.         return $this->url;
  98.     }
  99.     public function setUrl(string $url): self
  100.     {
  101.         $this->url $url;
  102.         return $this;
  103.     }
  104.     public function getUserId(): ?int
  105.     {
  106.         return $this->user_id;
  107.     }
  108.     public function setUserId(int $user_id): self
  109.     {
  110.         $this->user_id $user_id;
  111.         return $this;
  112.     }
  113.     public function getUsername(): ?string
  114.     {
  115.         return $this->username;
  116.     }
  117.     public function setUsername(string $username): self
  118.     {
  119.         $this->username $username;
  120.         return $this;
  121.     }
  122.     public function getApproved(): ?bool
  123.     {
  124.         return $this->approved;
  125.     }
  126.     public function setApproved(bool $approved): self
  127.     {
  128.         $this->approved $approved;
  129.         return $this;
  130.     }
  131.     public function getApprovedUserId(): ?int
  132.     {
  133.         return $this->approved_user_id;
  134.     }
  135.     public function setApprovedUserId(int $approved_user_id): self
  136.     {
  137.         $this->approved_user_id $approved_user_id;
  138.         return $this;
  139.     }
  140.     public function getApprovedUsername(): ?string
  141.     {
  142.         return $this->approved_username;
  143.     }
  144.     public function setApprovedUsername(string $approved_username): self
  145.     {
  146.         $this->approved_username $approved_username;
  147.         return $this;
  148.     }
  149. }