src/Entity/ProviderHasEquipment.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProviderHasEquipmentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProviderHasEquipmentRepository::class)
  7.  */
  8. class ProviderHasEquipment
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Provider::class, inversedBy="equipments")
  18.      */
  19.     private $provider;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Equipment::class)
  22.      */
  23.     private $equipment;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Contract::class)
  26.      */
  27.     private $contract;
  28.     public function __construct()
  29.     {
  30.     }
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getProvider(): ?Provider
  36.     {
  37.         return $this->provider;
  38.     }
  39.     public function setProvider(?Provider $provider): self
  40.     {
  41.         $this->provider $provider;
  42.         return $this;
  43.     }
  44.     public function getEquipment(): ?Equipment
  45.     {
  46.         return $this->equipment;
  47.     }
  48.     public function setEquipment(?Equipment $equipment): self
  49.     {
  50.         $this->equipment $equipment;
  51.         return $this;
  52.     }
  53.     public function getContract(): ?Contract
  54.     {
  55.         return $this->contract;
  56.     }
  57.     public function setContract(?Contract $contract): self
  58.     {
  59.         $this->contract $contract;
  60.         return $this;
  61.     }
  62. }