Deprecated: Constant E_STRICT is deprecated in /var/www/PixelForce/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/PixelForce/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/TypeSecteur.php line 47

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TypeSecteurRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use JsonSerializable;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TypeSecteurRepository::class)
  8.  */
  9. class TypeSecteur implements JsonSerializable
  10. {
  11.     const SECURITE 3;
  12.     const ECOMMERCE 1;
  13.     const DEMANDE_DEVIS 2;
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $nom;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getNom(): ?string
  29.     {
  30.         return $this->nom;
  31.     }
  32.     public function setNom(string $nom): self
  33.     {
  34.         $this->nom $nom;
  35.         return $this;
  36.     }
  37.     public function jsonSerialize()
  38.     {
  39.         $vars get_object_vars($this);
  40.         return $vars;
  41.     }
  42. }