src/Domain/Entity/GuardRail.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\GuardRailRepository")
  7.  * @ORM\Table(name="guard_rail")
  8.  */
  9. class GuardRail 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\Column(type="decimal", precision=10, scale=2, name="prix_par_marche")
  22.      */
  23.     public string $pricePerStep;
  24.     // Getters and setters...
  25.     public function getType(): string
  26.     {
  27.         return $this->type;
  28.     }
  29.     public function getPricePerStep(): string
  30.     {
  31.         return $this->pricePerStep;
  32.     }
  33.     public function setType(string $type): void
  34.     {
  35.         $this->type $type;
  36.     }
  37.     public function setPricePerStep(string $pricePerStep): void
  38.     {
  39.         $this->pricePerStep $pricePerStep;
  40.     }
  41. }