src/Entity/ExpertAreaSpecie.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ExpertAreaSpecie
  6.  *
  7.  * @ORM\Table(name="expert_area_specie", indexes={@ORM\Index(name="IDX_70D642FDC5568CE4", columns={"expert_id"}), @ORM\Index(name="IDX_70D642FDD5436AB7", columns={"specie_id"}), @ORM\Index(name="IDX_70D642FD13E5ED25", columns={"specie_area_id"})})
  8.  * @ORM\Entity
  9.  */
  10. class ExpertAreaSpecie
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var \Expert
  22.      *
  23.      * @ORM\ManyToOne(targetEntity="Expert")
  24.      * @ORM\JoinColumns({
  25.      *   @ORM\JoinColumn(name="expert_id", referencedColumnName="id")
  26.      * })
  27.      */
  28.     private $expert;
  29.     /**
  30.      * @var \Specie
  31.      *
  32.      * @ORM\ManyToOne(targetEntity="Specie")
  33.      * @ORM\JoinColumns({
  34.      *   @ORM\JoinColumn(name="specie_id", referencedColumnName="id")
  35.      * })
  36.      */
  37.     private $specie;
  38.     /**
  39.      * @var \SpecieArea
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="SpecieArea")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="specie_area_id", referencedColumnName="id")
  44.      * })
  45.      */
  46.     private $specieArea;
  47.     public function __toString() { return strval($this->id);}
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getExpert(): ?Expert
  53.     {
  54.         return $this->expert;
  55.     }
  56.     public function setExpert(?Expert $expert): self
  57.     {
  58.         $this->expert $expert;
  59.         return $this;
  60.     }
  61.     public function getSpecie(): ?Specie
  62.     {
  63.         return $this->specie;
  64.     }
  65.     public function setSpecie(?Specie $specie): self
  66.     {
  67.         $this->specie $specie;
  68.         return $this;
  69.     }
  70.     public function getSpecieArea(): ?SpecieArea
  71.     {
  72.         return $this->specieArea;
  73.     }
  74.     public function setSpecieArea(?SpecieArea $specieArea): self
  75.     {
  76.         $this->specieArea $specieArea;
  77.         return $this;
  78.     }
  79. }