<?php
namespace App\Entity;
use App\Repository\RedirectionClientRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: RedirectionClientRepository::class)]
class RedirectionClient
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $oldurl;
#[ORM\Column(type: 'boolean', options: ['default' => 1])]
private $active=true;
#[ORM\Column(type: 'string', length: 255)]
private $newurl;
#[ORM\ManyToOne(targetEntity: Parameters::class, inversedBy: 'redirections')]
#[ORM\JoinColumn(nullable: false)]
private $parameter;
public function getId(): ?int
{
return $this->id;
}
public function getOldurl(): ?string
{
return $this->oldurl;
}
public function setOldurl(string $oldurl): self
{
$this->oldurl = $oldurl;
return $this;
}
public function getActive(): ?bool
{
return $this->active;
}
public function setActive(bool $active): self
{
$this->active = $active;
return $this;
}
public function getNewurl(): ?string
{
return $this->newurl;
}
public function setNewurl(string $newurl): self
{
$this->newurl = $newurl;
return $this;
}
public function getParameter(): ?Parameters
{
return $this->parameter;
}
public function setParameter(Parameters $parameter=null): self
{
$this->parameter = $parameter;
return $this;
}
}