src/Entity/ContentImagesetImage.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\ORM\Mapping\JoinColumn;
  5. use Doctrine\ORM\Mapping\ManyToOne;
  6. use JMS\Serializer\Annotation\Groups;
  7. /**
  8.  * @ORM\Table("ImagesetImage")
  9.  *
  10.  * @ORM\Entity(repositoryClass="App\Repository\ContentImagesetImageRepository")
  11.  */
  12. class ContentImagesetImage
  13. {
  14.     /**
  15.      * @Groups({"contentdetail"})
  16.      *
  17.      * @ORM\Id()
  18.      *
  19.      * @ORM\GeneratedValue()
  20.      *
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @ManyToOne(targetEntity="App\Entity\ContentImageset", inversedBy="images", cascade={"persist"})
  26.      *
  27.      * @JoinColumn(name="content_imageset_id", referencedColumnName="id", onDelete="CASCADE")
  28.      */
  29.     private $content_imageset;
  30.     /**
  31.      * @Groups({"contentdetail"})
  32.      *
  33.      * @ORM\Column(type="integer", nullable=true)
  34.      */
  35.     private $priority;
  36.     /**
  37.      * @Groups({"contentdetail"})
  38.      *
  39.      * @var string
  40.      */
  41.     private $pixelateUrl;
  42.     /**
  43.      * @Groups({"contentdetail"})
  44.      *
  45.      * @var string
  46.      */
  47.     private $url;
  48.     public function getId()
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function setPixelateUrl(string $url): self
  53.     {
  54.         $this->pixelateUrl $url;
  55.         return $this;
  56.     }
  57.     public function setUrl(string $url): self
  58.     {
  59.         $this->url $url;
  60.         return $this;
  61.     }
  62.     public function getContentImageset(): ?ContentImageset
  63.     {
  64.         return $this->content_imageset;
  65.     }
  66.     public function setContentImageset(ContentImageset $content_imageset): self
  67.     {
  68.         $this->content_imageset $content_imageset;
  69.         return $this;
  70.     }
  71.     public function getPriority(): ?int
  72.     {
  73.         return $this->priority;
  74.     }
  75.     public function setPriority(?int $priority): self
  76.     {
  77.         $this->priority $priority;
  78.         return $this;
  79.     }
  80.     public function getPixelateUrl(): ?string
  81.     {
  82.         return $this->pixelateUrl;
  83.     }
  84.     public function getUrl(): ?string
  85.     {
  86.         return $this->url;
  87.     }
  88. }