<?php
namespace App\Entity;
use App\Repository\FavoriRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FavoriRepository::class)
*/
class Favori
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=AppRoute::class)
* @ORM\JoinColumn(nullable=false)
*/
private $route;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="favoris")
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $config;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $position;
public function getId(): ?int
{
return $this->id;
}
public function getRoute(): ?AppRoute
{
return $this->route;
}
public function setRoute(?AppRoute $route): self
{
$this->route = $route;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getConfig(): ?string
{
return $this->config;
}
public function setConfig(?string $config): self
{
$this->config = $config;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
}
public function setPosition(?int $position): self
{
$this->position = $position;
return $this;
}
}