src/Entity/ContractHasEquipment.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContractHasEquipmentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ContractHasEquipmentRepository::class)
  7.  */
  8. class ContractHasEquipment
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Contract::class, inversedBy="equipments")
  18.      */
  19.     private $contract;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=ProviderHasEquipment::class)
  22.      */
  23.     private $provider;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=EnterpriseHasEquipment::class)
  26.      */
  27.     private $enterprise;
  28.     /**
  29.      * @ORM\Column(type="boolean", nullable=true)
  30.      */
  31.     private $location;
  32.     /**
  33.      * @ORM\Column(type="boolean", nullable=true)
  34.      */
  35.     private $enterprise_owner;
  36.     /**
  37.      * @ORM\Column(type="boolean", nullable=true)
  38.      */
  39.     private $loan;
  40.     /**
  41.      * @ORM\Column(type="float", nullable=true)
  42.      */
  43.     private $price;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Equipment::class, inversedBy="contractHasEquipment")
  46.      */
  47.     private $equipment;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getContract(): ?Contract
  53.     {
  54.         return $this->contract;
  55.     }
  56.     public function setContract(?Contract $contract): self
  57.     {
  58.         $this->contract $contract;
  59.         return $this;
  60.     }
  61.     public function getProvider(): ?ProviderHasEquipment
  62.     {
  63.         return $this->provider;
  64.     }
  65.     public function setProvider(?ProviderHasEquipment $provider): self
  66.     {
  67.         $this->provider $provider;
  68.         return $this;
  69.     }
  70.     public function getEnterprise(): ?EnterpriseHasEquipment
  71.     {
  72.         return $this->enterprise;
  73.     }
  74.     public function setEnterprise(?EnterpriseHasEquipment $enterprise): self
  75.     {
  76.         $this->enterprise $enterprise;
  77.         return $this;
  78.     }
  79.     public function getLocation(): ?bool
  80.     {
  81.         return $this->location;
  82.     }
  83.     public function setLocation(?bool $location): self
  84.     {
  85.         $this->location $location;
  86.         return $this;
  87.     }
  88.     public function getEnterpriseOwner(): ?bool
  89.     {
  90.         return $this->enterprise_owner;
  91.     }
  92.     public function setEnterpriseOwner(?bool $enterprise_owner): self
  93.     {
  94.         $this->enterprise_owner $enterprise_owner;
  95.         return $this;
  96.     }
  97.     public function getLoan(): ?bool
  98.     {
  99.         return $this->loan;
  100.     }
  101.     public function setLoan(?bool $loan): self
  102.     {
  103.         $this->loan $loan;
  104.         return $this;
  105.     }
  106.     public function getPrice(): ?float
  107.     {
  108.         return $this->price;
  109.     }
  110.     public function setPrice(?float $price): self
  111.     {
  112.         $this->price $price;
  113.         return $this;
  114.     }
  115.     public function getEquipment(): ?Equipment
  116.     {
  117.         return $this->equipment;
  118.     }
  119.     public function setEquipment(?Equipment $equipment): self
  120.     {
  121.         $this->equipment $equipment;
  122.         return $this;
  123.     }
  124. }