src/Entity/CustomerVariable.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomerVariableRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  * @ORM\Entity(repositoryClass=CustomerVariableRepository::class)
  9.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  10.  */
  11. class CustomerVariable
  12. {
  13.     use SoftDeleteableEntity;
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=CustomerBP::class, inversedBy="customerVariables")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $customerBp;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=Variable::class, inversedBy="customerVariables")
  27.      * @ORM\JoinColumn(nullable=false)
  28.      */
  29.     private $variable;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $value;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getCustomerBp(): ?CustomerBP
  39.     {
  40.         return $this->customerBp;
  41.     }
  42.     public function setCustomerBp(?CustomerBP $customerBp): self
  43.     {
  44.         $this->customerBp $customerBp;
  45.         return $this;
  46.     }
  47.     public function getVariable(): ?Variable
  48.     {
  49.         return $this->variable;
  50.     }
  51.     public function setVariable(?Variable $variable): self
  52.     {
  53.         $this->variable $variable;
  54.         return $this;
  55.     }
  56.     public function getValue(): ?string
  57.     {
  58.         return $this->value;
  59.     }
  60.     public function setValue(?string $value): self
  61.     {
  62.         $this->value $value;
  63.         return $this;
  64.     }
  65. }