src/Entity/MediaMetaTag.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity(repositoryClass=MediaMetaTagRepository::class)
  7.  */
  8. class MediaMetaTag
  9. {
  10.     /**
  11.      * @var int
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @var Media
  19.      * @ORM\ManyToOne(targetEntity=Media::class, inversedBy="mediaMetaTags")
  20.      * @ORM\JoinColumn(name="media_id", referencedColumnName="id")
  21.      */
  22.     private $media;
  23.     /**
  24.      * @var string
  25.      * @ORM\Column(name="`key`",type="string", length=255)
  26.      */
  27.     private $key;
  28.     /**
  29.      * @var string
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     private $value;
  33.     /**
  34.      * @ORM\Column(type="datetime")
  35.      */
  36.     private $createdAt;
  37.     /**
  38.      * @ORM\Column(type="datetime")
  39.      */
  40.     private $updatedAt;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     /**
  46.      * Get the value of updatedAt
  47.      */
  48.     public function getCreatedAt(): ?\DateTimeInterface
  49.     {
  50.         return $this->createdAt;
  51.     }
  52.     /**
  53.      * Set the value of updatedAt
  54.      *
  55.      * @return  self
  56.      */
  57.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  58.     {
  59.         $this->createdAt $createdAt;
  60.         return $this;
  61.     }
  62.     /**
  63.      * Get the value of updatedAt
  64.      */
  65.     public function getUpdatedAt()
  66.     {
  67.         return $this->updatedAt;
  68.     }
  69.     /**
  70.      * Set the value of updatedAt
  71.      *
  72.      * @return  self
  73.      */
  74.     public function setUpdatedAt($updatedAt)
  75.     {
  76.         $this->updatedAt $updatedAt;
  77.         return $this;
  78.     }
  79.     /**
  80.      * Get the value of media
  81.      *
  82.      * @return  Media
  83.      */ 
  84.     public function getMedia() :Media
  85.     {
  86.         return $this->media;
  87.     }
  88.     /**
  89.      * Set the value of media
  90.      *
  91.      * @param  Media  $media
  92.      *
  93.      * @return  self
  94.      */ 
  95.     public function setMedia(Media $media)
  96.     {
  97.         $this->media $media;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get the value of key
  102.      *
  103.      * @return  string
  104.      */ 
  105.     public function getKey() :string
  106.     {
  107.         return $this->key;
  108.     }
  109.     /**
  110.      * Set the value of key
  111.      *
  112.      * @param  string  $key
  113.      *
  114.      * @return  self
  115.      */ 
  116.     public function setKey(string $key)
  117.     {
  118.         $this->key $key;
  119.         return $this;
  120.     }
  121.     /**
  122.      * Get the value of value
  123.      *
  124.      * @return  string
  125.      */ 
  126.     public function getValue()
  127.     {
  128.         return $this->value;
  129.     }
  130.     /**
  131.      * Set the value of value
  132.      *
  133.      * @param  string  $value
  134.      *
  135.      * @return  self
  136.      */ 
  137.     public function setValue(string $value)
  138.     {
  139.         $this->value $value;
  140.         return $this;
  141.     }
  142. }