src/Entity/Main/GroupTarifs.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use App\Repository\GroupTarifsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=GroupTarifsRepository::class)
  7.  */
  8. class GroupTarifs
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $designation;
  20.     
  21.     /**
  22.      * @ORM\OneToMany(targetEntity="App\Entity\Main\Price", mappedBy="groupby")
  23.      */
  24.     private $prices;
  25.     
  26.     public function __toString()
  27.     {
  28.         return (string) $this->designation;
  29.     }   
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getDesignation(): ?string
  35.     {
  36.         return $this->designation;
  37.     }
  38.     public function setDesignation(string $designation): self
  39.     {
  40.         $this->designation $designation;
  41.         return $this;
  42.     }
  43.     
  44.     public function getPrices(): ?Price
  45.     {
  46.         return $this->prices;
  47.     }
  48.     public function setPrices(?Price $prices): self
  49.     {
  50.         $this->prices $prices;
  51.         return $this;
  52.     }
  53. }