src/Domain/Entity/WoodStep.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\WoodStepRepository")
  7.  * @ORM\Table(name="wood_step")
  8.  */
  9. class WoodStep extends AbstractEntity
  10. {
  11.     public function __toString(): string
  12.     {
  13.         return $this->woodType;
  14.     }
  15.     
  16.     /**
  17.      * @ORM\Column(type="string", name="essence")
  18.      */
  19.     public string $woodType;
  20.     /**
  21.      * @ORM\Column(type="string", name="finition")
  22.      */
  23.     public string $treatment;
  24.     /**
  25.      * @ORM\Column(type="decimal", precision=10, scale=2, name="prix")
  26.      */
  27.     public string $price;
  28.     // Getters and setters...
  29.     public function getWoodType(): string
  30.     {
  31.         return $this->woodType;
  32.     }
  33.     public function getTreatment(): string
  34.     {
  35.         return $this->treatment;
  36.     }
  37.     public function getPrice(): string
  38.     {
  39.         return $this->price;
  40.     }
  41.     public function setWoodType(string $woodType): void
  42.     {
  43.         $this->woodType $woodType;
  44.     }
  45.     public function setTreatment(string $treatment): void {
  46.         $this->treatment $treatment;
  47.     }
  48.     public function setPrice(string $price): void {
  49.         $this->price $price;
  50.     }
  51. }