src/Domain/Entity/Finition.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\FinitionRepository")
  7.  * @ORM\Table(name="finition")
  8.  */
  9. class Finition extends AbstractEntity
  10. {
  11.     public function __toString(): string
  12.     {
  13.         return $this->name;
  14.     }
  15.     
  16.     /**
  17.      * @ORM\Column(type="string", name="nom")
  18.      */
  19.     public string $name;
  20.     /**
  21.      * @ORM\Column(type="string", name="categorie")
  22.      */
  23.     public string $category;
  24.     /**
  25.      * @ORM\Column(type="decimal", precision=10, scale=2, name="prix_par_marche", nullable=true)
  26.      */
  27.     public ?string $pricePerStep null;
  28.     /**
  29.      * @ORM\Column(type="decimal", precision=10, scale=2, name="prix_forfaitaire", nullable=true)
  30.      */
  31.     public ?string $fixedPrice null;
  32.     /**
  33.      * @ORM\Column(type="boolean", name="est_kit")
  34.      */
  35.     public bool $isKit false;
  36.     // Getters and setters...
  37.     public function getName(): string
  38.     {
  39.         return $this->name;
  40.     }
  41.     public function setName(string $name): void
  42.     {
  43.         $this->name $name;
  44.     }
  45.     public function getCategory(): string
  46.     {
  47.         return $this->category;
  48.     }
  49.     public function setCategory(string $category): void
  50.     {
  51.         $this->category $category;
  52.     }
  53.     public function getPricePerStep(): ?string
  54.     {
  55.         return $this->pricePerStep;
  56.     }
  57.     public function setPricePerStep(?string $pricePerStep): void
  58.     {
  59.         $this->pricePerStep $pricePerStep;
  60.     }
  61.     public function getFixedPrice(): ?string
  62.     {
  63.         return $this->fixedPrice;
  64.     }
  65.     public function setFixedPrice(?string $fixedPrice): void
  66.     {
  67.         $this->fixedPrice $fixedPrice;
  68.     }
  69.     public function isKit(): bool
  70.     {
  71.         return $this->isKit;
  72.     }
  73.     public function setIsKit(bool $isKit): void
  74.     {
  75.         $this->isKit $isKit;
  76.     }
  77. }