src/Entity/InspirationGallery.php line 25

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Annotation\DatabaseSubscriberClient;
  5. use App\Entity\Traits\EntitySEOTrait;
  6. use App\Entity\Traits\EntitySoftDeletableTrait;
  7. use App\Entity\Traits\EntityTimestampableTrait;
  8. use Doctrine\Common\Collections\ArrayCollection;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. use Gedmo\Mapping\Annotation\SoftDeleteable;
  12. use JMS\Serializer\Annotation\ExclusionPolicy;
  13. use JMS\Serializer\Annotation\Expose;
  14. use JMS\Serializer\Annotation\Groups;
  15. /**
  16.  * @ORM\Entity(repositoryClass="App\Repository\InspirationGalleryRepository")
  17.  * @SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=false)
  18.  * @ExclusionPolicy("all")
  19.  * @DatabaseSubscriberClient()
  20.  */
  21. class InspirationGallery extends BaseDomain
  22. {
  23.     use EntityTimestampableTrait;
  24.     use EntitySoftDeletableTrait;
  25.     use EntitySEOTrait;
  26.     /**
  27.      * @ORM\Id()
  28.      * @ORM\GeneratedValue()
  29.      * @ORM\Column(type="integer")
  30.      */
  31.     private $id;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="SonataMediaMedia")
  34.      */
  35.     private $media;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="Inspiration")
  38.      */
  39.     private $inspiration;
  40.     public function __construct()
  41.     {
  42.     }
  43.     /**
  44.      * @return mixed
  45.      */
  46.     public function getId()
  47.     {
  48.         return $this->id;
  49.     }
  50.     /**
  51.      * @return mixed
  52.      */
  53.     public function getMedia()
  54.     {
  55.         return $this->media;
  56.     }
  57.     /**
  58.      * @param mixed $media
  59.      */
  60.     public function setMedia($media)
  61.     {
  62.         $this->media $media;
  63.     }
  64.     /**
  65.      * @return mixed
  66.      */
  67.     public function getInspiration()
  68.     {
  69.         return $this->inspiration;
  70.     }
  71.     /**
  72.      * @param mixed $inspiration
  73.      */
  74.     public function setInspiration($inspiration)
  75.     {
  76.         $this->inspiration $inspiration;
  77.     }
  78. }