src/Domain/Entity/StairType.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\StairTypeRepository")
  7.  * @ORM\Table(name="stair_type")
  8.  */
  9. class StairType extends AbstractEntity
  10. {
  11.     public function __toString(): string
  12.     {
  13.         return $this->name;
  14.     }
  15.     /**
  16.      * @ORM\Column(type="string", name="nom")
  17.      */
  18.     public string $name;
  19.     /**
  20.      * @ORM\Column(type="decimal", precision=10, scale=2, name="prix_par_marche")
  21.      */
  22.     public string $pricePerStep;
  23.     // Getters and setters...
  24.     public function getName(): string
  25.     {
  26.         return $this->name;
  27.     }
  28.     public function getPricePerStep(): string
  29.     {
  30.         return $this->pricePerStep;
  31.     }
  32.     public function setName(string $name): void
  33.     {
  34.         $this->name $name;
  35.     }
  36.     public function setPricePerStep(string $pricePerStep): void
  37.     {
  38.         $this->pricePerStep $pricePerStep;
  39.     }
  40. }