src/Entity/RedirectionClient.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RedirectionClientRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassRedirectionClientRepository::class)]
  6. class RedirectionClient
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $oldurl;
  14.     #[ORM\Column(type'boolean'options: ['default' => 1])]
  15.     private $active=true;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $newurl;
  18.      #[ORM\ManyToOne(targetEntityParameters::class, inversedBy'redirections')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private $parameter;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getOldurl(): ?string
  26.     {
  27.         return $this->oldurl;
  28.     }
  29.     public function setOldurl(string $oldurl): self
  30.     {
  31.         $this->oldurl $oldurl;
  32.         return $this;
  33.     }
  34.     public function getActive(): ?bool
  35.     {
  36.         return $this->active;
  37.     }
  38.     public function setActive(bool $active): self
  39.     {
  40.         $this->active $active;
  41.         return $this;
  42.     }
  43.     public function getNewurl(): ?string
  44.     {
  45.         return $this->newurl;
  46.     }
  47.     public function setNewurl(string $newurl): self
  48.     {
  49.         $this->newurl $newurl;
  50.         return $this;
  51.     }
  52.     public function getParameter(): ?Parameters
  53.     {
  54.         return $this->parameter;
  55.     }
  56.     public function setParameter(Parameters $parameter=null): self
  57.     {
  58.         $this->parameter $parameter;
  59.         return $this;
  60.     }
  61. }