<?php
namespace App\Entity;
use App\Repository\RedirectRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="MLDev_Redirect")
* @ORM\Entity(repositoryClass=RedirectRepository::class)
*/
class Redirect
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $whereFrom;
/**
* @ORM\Column(type="string", length=255)
*/
private $whereTo;
/**
* @ORM\Column(type="integer")
*/
private $httpCode = 302;
public function getId(): ?int
{
return $this->id;
}
public function getWhereFrom()
{
return $this->whereFrom;
}
public function setWhereFrom($whereFrom): self
{
$this->whereFrom = $whereFrom;
return $this;
}
public function getWhereTo()
{
return $this->whereTo;
}
public function setWhereTo($whereTo): self
{
$this->whereTo = $whereTo;
return $this;
}
public function getHttpCode(): int
{
return $this->httpCode;
}
public function setHttpCode(int $httpCode): self
{
$this->httpCode = $httpCode;
return $this;
}
}