src/Entity/Parameters.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ParametersRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassParametersRepository::class)]
  6. class Parameters
  7. {
  8.     public const ACTIVE 1;
  9.     public const BEING_STOPPED 2;
  10.     public const STOPPED = -1;
  11.  
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(type'string'length255nullable:false)]
  17.     private $name
  18.     #[ORM\Column(type'string'length255nullable:false)]
  19.     private $value
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     /**
  25.      * Get the value of value
  26.      */ 
  27.     public function getValue()
  28.     {
  29.         return $this->value;
  30.     }
  31.     /**
  32.      * Set the value of value
  33.      *
  34.      * @return  self
  35.      */ 
  36.     public function setValue($value)
  37.     {
  38.         $this->value $value;
  39.         return $this;
  40.     }
  41.     /**
  42.      * Get the value of name
  43.      */ 
  44.     public function getName()
  45.     {
  46.         return $this->name;
  47.     }
  48.     /**
  49.      * Set the value of name
  50.      *
  51.      * @return  self
  52.      */ 
  53.     public function setName($name)
  54.     {
  55.         $this->name $name;
  56.         return $this;
  57.     }
  58. }