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.         public function getId(): ?string
  45.         {
  46.             return $this->id;
  47.         }
  48.         public function isAlarmStockActive(): ?bool
  49.         {
  50.             return $this->alarmStockActive;
  51.         }
  52.         public function setAlarmStockActive(bool $alarmStockActive): static
  53.         {
  54.             $this->alarmStockActive $alarmStockActive;
  55.             return $this;
  56.         }
  57.         public function getAlarmStockYellow(): ?int
  58.         {
  59.             return $this->alarmStockYellow;
  60.         }
  61.         public function setAlarmStockYellow(?int $alarmStockYellow): static
  62.         {
  63.             $this->alarmStockYellow $alarmStockYellow;
  64.             return $this;
  65.         }
  66.         public function getAlarmStockRed(): ?int
  67.         {
  68.             return $this->alarmStockRed;
  69.         }
  70.         public function setAlarmStockRed(?int $alarmStockRed): static
  71.         {
  72.             $this->alarmStockRed $alarmStockRed;
  73.             return $this;
  74.         }
  75.         public function getModel(): ?ProductModel
  76.         {
  77.             return $this->model;
  78.         }
  79.         public function setModel(?ProductModel $model): static
  80.         {
  81.             $this->model $model;
  82.             return $this;
  83.         }
  84.         public function getSupplier(): ?Supplier
  85.         {
  86.             return $this->supplier;
  87.         }
  88.         public function setSupplier(?Supplier $supplier): static
  89.         {
  90.             $this->supplier $supplier;
  91.             return $this;
  92.         }
  93. }