src/Domain/Entity/SteelStep.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\SteelStepRepository")
  7.  * @ORM\Table(name="steel_step")
  8.  */
  9. class SteelStep 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_au_m2")
  22.      */
  23.     public string $pricePerSquareMeter;
  24.     // Getters and setters...
  25.     public function getType(): string
  26.     {
  27.         return $this->type;
  28.     }
  29.     public function getPricePerSquareMeter(): string
  30.     {
  31.         return $this->pricePerSquareMeter;
  32.     }
  33.     public function setType(string $type): void
  34.     {
  35.         $this->type $type;
  36.     }
  37.     public function setPricePerSquareMeter(string $pricePerSquareMeter): void
  38.     {
  39.         $this->pricePerSquareMeter $pricePerSquareMeter;
  40.     }
  41. }