<?phpnamespace App\Entity;use App\Repository\ContractHasEquipmentRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ContractHasEquipmentRepository::class) */class ContractHasEquipment{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Contract::class, inversedBy="equipments") */ private $contract; /** * @ORM\ManyToOne(targetEntity=ProviderHasEquipment::class) */ private $provider; /** * @ORM\ManyToOne(targetEntity=EnterpriseHasEquipment::class) */ private $enterprise; /** * @ORM\Column(type="boolean", nullable=true) */ private $location; /** * @ORM\Column(type="boolean", nullable=true) */ private $enterprise_owner; /** * @ORM\Column(type="boolean", nullable=true) */ private $loan; /** * @ORM\Column(type="float", nullable=true) */ private $price; /** * @ORM\ManyToOne(targetEntity=Equipment::class, inversedBy="contractHasEquipment") */ private $equipment; public function getId(): ?int { return $this->id; } public function getContract(): ?Contract { return $this->contract; } public function setContract(?Contract $contract): self { $this->contract = $contract; return $this; } public function getProvider(): ?ProviderHasEquipment { return $this->provider; } public function setProvider(?ProviderHasEquipment $provider): self { $this->provider = $provider; return $this; } public function getEnterprise(): ?EnterpriseHasEquipment { return $this->enterprise; } public function setEnterprise(?EnterpriseHasEquipment $enterprise): self { $this->enterprise = $enterprise; return $this; } public function getLocation(): ?bool { return $this->location; } public function setLocation(?bool $location): self { $this->location = $location; return $this; } public function getEnterpriseOwner(): ?bool { return $this->enterprise_owner; } public function setEnterpriseOwner(?bool $enterprise_owner): self { $this->enterprise_owner = $enterprise_owner; return $this; } public function getLoan(): ?bool { return $this->loan; } public function setLoan(?bool $loan): self { $this->loan = $loan; return $this; } public function getPrice(): ?float { return $this->price; } public function setPrice(?float $price): self { $this->price = $price; return $this; } public function getEquipment(): ?Equipment { return $this->equipment; } public function setEquipment(?Equipment $equipment): self { $this->equipment = $equipment; return $this; }}