src/Entity/UserParametros.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\UserParametrosRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. #[ORM\Entity(repositoryClassUserParametrosRepository::class)]
  7. class UserParametros
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue(strategy"AUTO")]
  11.     #[ORM\Column(type"integer")]
  12.     private $id;
  13.     #[ORM\ManyToOne(inversedBy'UserPalavras')]
  14.     private ?User $User null;
  15.     #[ORM\Column(length255)]
  16.     private $parametro;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private $valor;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getUser(): ?User
  24.     {
  25.         return $this->User;
  26.     }
  27.     public function setUser(?User $User): self
  28.     {
  29.         $this->User $User;
  30.         return $this;
  31.     }
  32.     public function getParametro(): ?string
  33.     {
  34.         return $this->parametro;
  35.     }
  36.     public function setParametro(?string $parametro): self
  37.     {
  38.         $this->parametro $parametro;
  39.         return $this;
  40.     }
  41.     public function getValor(): ?string
  42.     {
  43.         return $this->valor;
  44.     }
  45.     public function setValor(?string $valor): self
  46.     {
  47.         $this->valor $valor;
  48.         return $this;
  49.     }
  50. }