src/Entity/Redirect.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RedirectRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="MLDev_Redirect")
  7.  * @ORM\Entity(repositoryClass=RedirectRepository::class)
  8.  */
  9. class Redirect
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $whereFrom;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $whereTo;
  25.     /**
  26.      * @ORM\Column(type="integer")
  27.      */
  28.     private $httpCode 302;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getWhereFrom()
  34.     {
  35.         return $this->whereFrom;
  36.     }
  37.     public function setWhereFrom($whereFrom): self
  38.     {
  39.         $this->whereFrom $whereFrom;
  40.         return $this;
  41.     }
  42.     public function getWhereTo()
  43.     {
  44.         return $this->whereTo;
  45.     }
  46.     public function setWhereTo($whereTo): self
  47.     {
  48.         $this->whereTo $whereTo;
  49.         return $this;
  50.     }
  51.     public function getHttpCode(): int
  52.     {
  53.         return $this->httpCode;
  54.     }
  55.     public function setHttpCode(int $httpCode): self
  56.     {
  57.         $this->httpCode $httpCode;
  58.         return $this;
  59.     }
  60. }