src/Entity/AdvertisingBannerType.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\AdvertisingBannerTypeRepository")
  6.  *
  7.  * @ORM\HasLifecycleCallbacks()
  8.  */
  9. class AdvertisingBannerType
  10. {
  11.     public function __construct()
  12.     {
  13.     }
  14.     /**
  15.      * @ORM\Id()
  16.      *
  17.      * @ORM\GeneratedValue()
  18.      *
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\Column(type="string", nullable=false, length=180)
  24.      */
  25.     private $name null;
  26.     /**
  27.      * @ORM\Column(type="string", nullable=false, length=180)
  28.      */
  29.     private $slug null;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.         return $this->id;
  34.     }
  35.     public function getName()
  36.     {
  37.         return $this->name;
  38.     }
  39.     public function setName($name)
  40.     {
  41.         $this->name $name;
  42.         return $this;
  43.     }
  44.     public function getSlug()
  45.     {
  46.         return $this->slug;
  47.     }
  48.     public function setSlug($slug)
  49.     {
  50.         $this->slug $slug;
  51.         return $this;
  52.     }
  53.     /**
  54.      * @ORM\Column(type="datetime", nullable=false)
  55.      */
  56.     private $created_at;
  57.     /**
  58.      * @ORM\Column(type="datetime", nullable=true)
  59.      */
  60.     private $updated_at null;
  61.     public function getCreatedAt(): \DateTimeInterface
  62.     {
  63.         return $this->created_at;
  64.     }
  65.     public function setCreatedAt(\DateTimeInterface $created_at): self
  66.     {
  67.         $this->created_at $created_at;
  68.         return $this;
  69.     }
  70.     public function getUpdatedAt(): ?\DateTimeInterface
  71.     {
  72.         return $this->updated_at;
  73.     }
  74.     public function setUpdatedAt(?\DateTimeInterface $updated_at): self
  75.     {
  76.         $this->updated_at $updated_at;
  77.         return $this;
  78.     }
  79.     /**
  80.      * @ORM\PrePersist
  81.      */
  82.     public function setCreatedAtValue()
  83.     {
  84.         $this->setCreatedAt(new \DateTime());
  85.     }
  86.     /**
  87.      * @ORM\PreUpdate
  88.      */
  89.     public function setUpdatedAtValue()
  90.     {
  91.         $this->setUpdatedAt(new \DateTime());
  92.     }
  93.     /**
  94.      * @ORM\Column(type="datetime", nullable=true)
  95.      */
  96.     private $deleted_at;
  97.     /**
  98.      * @ORM\Column(type="float")
  99.      */
  100.     private $width;
  101.     /**
  102.      * @ORM\Column(type="float")
  103.      */
  104.     private $height;
  105.     public function getDeletedAt(): ?\DateTimeInterface
  106.     {
  107.         return $this->deleted_at;
  108.     }
  109.     public function setDeletedAt(?\DateTimeInterface $deleted_at): self
  110.     {
  111.         $this->deleted_at $deleted_at;
  112.         return $this;
  113.     }
  114.     public function getWidth(): ?float
  115.     {
  116.         return $this->width;
  117.     }
  118.     public function setWidth(float $width): self
  119.     {
  120.         $this->width $width;
  121.         return $this;
  122.     }
  123.     public function getHeight(): ?float
  124.     {
  125.         return $this->height;
  126.     }
  127.     public function setHeight(float $height): self
  128.     {
  129.         $this->height $height;
  130.         return $this;
  131.     }
  132.     // Target of a LinkedEntity from AdvertisingBannerTypeController (Controller)
  133. }