<?php
namespace App\Entity;
use Doctrine\ORM\Mapping\Index;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\RedirectRepository;
#[ORM\Entity(repositoryClass: RedirectRepository::class)]
#[Index(name: "redirect_oldurl", columns: ["oldurl"])]
class Redirect implements EntityInterface
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $oldurl = null;
#[ORM\Column(length: 255)]
private ?string $newurl = null;
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 getNewurl(): ?string
{
return $this->newurl;
}
public function setNewurl(string $newurl): self
{
$this->newurl = $newurl;
return $this;
}
}