src/Entity/Redirect.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping\Index;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\RedirectRepository;
  6. #[ORM\Entity(repositoryClassRedirectRepository::class)]
  7. #[Index(name"redirect_oldurl"columns: ["oldurl"])]
  8. class Redirect implements EntityInterface
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $oldurl null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $newurl null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getOldurl(): ?string
  23.     {
  24.         return $this->oldurl;
  25.     }
  26.     public function setOldurl(string $oldurl): self
  27.     {
  28.         $this->oldurl $oldurl;
  29.         return $this;
  30.     }
  31.     public function getNewurl(): ?string
  32.     {
  33.         return $this->newurl;
  34.     }
  35.     public function setNewurl(string $newurl): self
  36.     {
  37.         $this->newurl $newurl;
  38.         return $this;
  39.     }
  40. }