src/Entity/MafoId/MafoOffersMapping.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\MafoId;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\ORM\Mapping\UniqueConstraint;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\MafoOffersMappingRepository")
  7.  * @ORM\Table(
  8.  *     indexes={
  9.  *     @ORM\Index(name="system_identifier", columns={"system_identifier"}),
  10.  *     @ORM\Index(name="system_identifier_id", columns={"system_identifier_id"})
  11.  * },
  12.  *     uniqueConstraints={
  13.  *         @UniqueConstraint(name="system_identifier_unique",
  14.  *              columns={"system_identifier_id", "system_identifier"})
  15.  *  })
  16.  */
  17. class MafoOffersMapping
  18. {
  19.     /**
  20.      * @ORM\Column(type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="MafoOffers")
  27.      * @ORM\JoinColumn(name="mafo_offer", referencedColumnName="id")
  28.      */
  29.     private $mafoOffer;
  30.     /**
  31.      * @ORM\Column(type="string", nullable=false)
  32.      */
  33.     private $systemIdentifier;
  34.     /**
  35.      * @ORM\Column(type="integer", nullable=false)
  36.      */
  37.     private $systemIdentifierId;
  38.     /**
  39.      * @ORM\Column(type="datetime")
  40.      */
  41.     private $dateUpdated;
  42.     /**
  43.      * @ORM\Column(type="datetime")
  44.      */
  45.     private $dateInserted;
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getMafoOffer(): ?MafoOffers
  51.     {
  52.         return $this->mafoOffer;
  53.     }
  54.     public function setMafoOffer(?MafoOffers $mafoOffer): self
  55.     {
  56.         $this->mafoOffer $mafoOffer;
  57.         return $this;
  58.     }
  59.     public function getSystemIdentifier(): ?string
  60.     {
  61.         return $this->systemIdentifier;
  62.     }
  63.     public function setSystemIdentifier(string $systemIdentifier): self
  64.     {
  65.         $this->systemIdentifier $systemIdentifier;
  66.         return $this;
  67.     }
  68.     public function getSystemIdentifierId(): ?int
  69.     {
  70.         return $this->systemIdentifierId;
  71.     }
  72.     public function setSystemIdentifierId(int $systemIdentifierId): self
  73.     {
  74.         $this->systemIdentifierId $systemIdentifierId;
  75.         return $this;
  76.     }
  77.     public function getDateUpdated(): ?\DateTimeInterface
  78.     {
  79.         return $this->dateUpdated;
  80.     }
  81.     public function setDateUpdated(\DateTimeInterface $dateUpdated): self
  82.     {
  83.         $this->dateUpdated $dateUpdated;
  84.         return $this;
  85.     }
  86.     public function getDateInserted(): ?\DateTimeInterface
  87.     {
  88.         return $this->dateInserted;
  89.     }
  90.     public function setDateInserted(\DateTimeInterface $dateInserted): self
  91.     {
  92.         $this->dateInserted $dateInserted;
  93.         return $this;
  94.     }
  95. }