src/Domain/Entity/Limon.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Domain\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Domain\Repository\LimonRepository")
  7.  * @ORM\Table(name="limon")
  8.  */
  9. class Limon extends AbstractEntity
  10. {
  11.     public function __toString(): string
  12.     {
  13.         return $this->type;
  14.     }
  15.     
  16.     /**
  17.      * @ORM\Column(type="string", name="type")
  18.      */
  19.     public string $type;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="StairType")
  22.      * @ORM\JoinColumn(name="type_escalier_id", referencedColumnName="id")
  23.      */
  24.     public StairType $stairType;
  25.     /**
  26.      * @ORM\Column(type="decimal", precision=10, scale=2, name="supplement")
  27.      */
  28.     public string $supplement;
  29.     // Getters and setters...
  30.     public function getType(): string
  31.     {
  32.         return $this->type;
  33.     }
  34.     public function setType(string $type): void
  35.     {
  36.         $this->type $type;
  37.     }
  38.     public function getSupplement(): string
  39.     {
  40.         return $this->supplement;
  41.     }
  42.     public function setSupplement(string $supplement): void
  43.     {
  44.         $this->supplement $supplement;
  45.     }
  46.     public function getStairType(): StairType
  47.     {
  48.         return $this->stairType;
  49.     }
  50.     public function setStairType(StairType $stairType): void
  51.     {
  52.         $this->stairType $stairType;
  53.     }
  54. }