<?php
namespace App\Entity;
use App\Repository\ParametersRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ParametersRepository::class)]
class Parameters
{
public const ACTIVE = 1;
public const BEING_STOPPED = 2;
public const STOPPED = -1;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: 'string', length: 255, nullable:false)]
private $name;
#[ORM\Column(type: 'string', length: 255, nullable:false)]
private $value;
public function getId(): ?int
{
return $this->id;
}
/**
* Get the value of value
*/
public function getValue()
{
return $this->value;
}
/**
* Set the value of value
*
* @return self
*/
public function setValue($value)
{
$this->value = $value;
return $this;
}
/**
* Get the value of name
*/
public function getName()
{
return $this->name;
}
/**
* Set the value of name
*
* @return self
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
}