src/Entity/Slave/JoinTableProductModelSupplier.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Slave;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Table(name="eposm_s_join_table_product_model_supplier")
  9.  * @ORM\Entity(repositoryClass="App\Repository\Slave\JoinTableProductModelSupplierRepository")
  10.  */
  11. class JoinTableProductModelSupplier
  12. {
  13.     /**
  14.      * @ORM\Column(name="id", type="bigint")
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */
  18.     protected $id;
  19.         
  20.     /**
  21.      * @ORM\Column(name="is_alarm_stock_active", type="boolean")
  22.      */
  23.     protected $alarmStockActive true;
  24.     /**
  25.      * @ORM\Column(name="alarm_stock_yellow", type="integer", nullable=true)
  26.      */
  27.     protected $alarmStockYellow;
  28.     
  29.     /**
  30.      * @ORM\Column(name="alarm_stock_red", type="integer", nullable=true)
  31.      */
  32.     protected $alarmStockRed;
  33.     // ManyToOne
  34.         /**
  35.          * @ORM\ManyToOne(targetEntity="App\Entity\Slave\ProductModel", inversedBy="suppliers")
  36.          * @ORM\JoinColumn(name="product_model_id", referencedColumnName="id")
  37.          */
  38.         private $model;
  39.         /**
  40.          * @ORM\ManyToOne(targetEntity="App\Entity\Slave\Supplier", inversedBy="models")
  41.          * @ORM\JoinColumn(name="supplier_id", referencedColumnName="id")
  42.          */
  43.         private $supplier;
  44.     //
  45.     public function getId(): ?string
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function isAlarmStockActive(): ?bool
  50.     {
  51.         return $this->alarmStockActive;
  52.     }
  53.     public function setAlarmStockActive(bool $alarmStockActive): self
  54.     {
  55.         $this->alarmStockActive $alarmStockActive;
  56.         return $this;
  57.     }
  58.     public function getAlarmStockYellow(): ?int
  59.     {
  60.         return $this->alarmStockYellow;
  61.     }
  62.     public function setAlarmStockYellow(?int $alarmStockYellow): self
  63.     {
  64.         $this->alarmStockYellow $alarmStockYellow;
  65.         return $this;
  66.     }
  67.     public function getAlarmStockRed(): ?int
  68.     {
  69.         return $this->alarmStockRed;
  70.     }
  71.     public function setAlarmStockRed(?int $alarmStockRed): self
  72.     {
  73.         $this->alarmStockRed $alarmStockRed;
  74.         return $this;
  75.     }
  76.     public function getModel(): ?ProductModel
  77.     {
  78.         return $this->model;
  79.     }
  80.     public function setModel(?ProductModel $model): self
  81.     {
  82.         $this->model $model;
  83.         return $this;
  84.     }
  85.     public function getSupplier(): ?Supplier
  86.     {
  87.         return $this->supplier;
  88.     }
  89.     public function setSupplier(?Supplier $supplier): self
  90.     {
  91.         $this->supplier $supplier;
  92.         return $this;
  93.     }
  94. }