src/Entity/MafoId/MafoOffers.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\MafoId;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\MafoOffersRepository")
  7.  * @ORM\Table
  8.  */
  9. class MafoOffers
  10. {
  11.     /**
  12.      * @ORM\Column(type="integer")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity="MafoAdvertisers")
  19.      * @ORM\JoinColumn(name="advertiser", referencedColumnName="id")
  20.      */
  21.     private $advertiser;
  22.     /**
  23.      * @ORM\Column(type="string", nullable=false)
  24.      */
  25.     private $name;
  26.     /**
  27.      * @ORM\Column(type="string", nullable=true)
  28.      */
  29.     private $status;
  30.     /**
  31.      * @ORM\Column(type="string", nullable=true)
  32.      */
  33.     private $updatedByEmail;
  34.     /**
  35.      * @ORM\Column(type="datetime")
  36.      */
  37.     private $dateUpdated;
  38.     /**
  39.      * @ORM\Column(type="datetime")
  40.      */
  41.     private $dateInserted;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getName(): ?string
  47.     {
  48.         return $this->name;
  49.     }
  50.     public function setName(string $name): self
  51.     {
  52.         $this->name $name;
  53.         return $this;
  54.     }
  55.     public function getDateUpdated(): ?\DateTimeInterface
  56.     {
  57.         return $this->dateUpdated;
  58.     }
  59.     public function setDateUpdated(\DateTimeInterface $dateUpdated): self
  60.     {
  61.         $this->dateUpdated $dateUpdated;
  62.         return $this;
  63.     }
  64.     public function getDateInserted(): ?\DateTimeInterface
  65.     {
  66.         return $this->dateInserted;
  67.     }
  68.     public function setDateInserted(\DateTimeInterface $dateInserted): self
  69.     {
  70.         $this->dateInserted $dateInserted;
  71.         return $this;
  72.     }
  73.     public function getStatus(): ?string
  74.     {
  75.         return $this->status;
  76.     }
  77.     public function setStatus(?string $status): static
  78.     {
  79.         $this->status $status;
  80.         return $this;
  81.     }
  82.     public function getUpdatedByEmail(): ?string
  83.     {
  84.         return $this->updatedByEmail;
  85.     }
  86.     public function setUpdatedByEmail(?string $updatedByEmail): static
  87.     {
  88.         $this->updatedByEmail $updatedByEmail;
  89.         return $this;
  90.     }
  91.     public function getAdvertiser(): ?MafoAdvertisers
  92.     {
  93.         return $this->advertiser;
  94.     }
  95.     public function setAdvertiser(?MafoAdvertisers $advertiser): static
  96.     {
  97.         $this->advertiser $advertiser;
  98.         return $this;
  99.     }
  100. }