<?php
namespace App\Entity;
use App\Repository\RedirectionRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: RedirectionRepository::class)]
class Redirection
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 300)]
private $newurl;
#[ORM\Column(type: 'string', length: 255)]
private $oldurl;
#[ORM\Column(type: 'boolean', options: ['default' => 1])]
private $active=true;
public function getId(): ?int
{
return $this->id;
}
public function getNewurl(): ?string
{
return $this->newurl;
}
public function setNewurl(string $newurl): self
{
$this->newurl = $newurl;
return $this;
}
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;
}
}