Files
BookNest/src/Entity/Favoris.php

171 lines
3.2 KiB
PHP

<?php
namespace App\Entity;
use App\Repository\FavorisRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FavorisRepository::class)]
class Favoris
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $id_google = null;
#[ORM\ManyToOne(inversedBy: 'favoris')]
private ?User $user = null;
#[ORM\Column(length: 255)]
private ?string $title = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $authors = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $edition = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $publication = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $categorie = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pages = null;
#[ORM\Column(length: 2555, nullable: true)]
private ?string $description = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $image = null;
public function getId(): ?int
{
return $this->id;
}
public function getIdGoogle(): ?string
{
return $this->id_google;
}
public function setIdGoogle(string $id_google): static
{
$this->id_google = $id_google;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): static
{
$this->user = $user;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): static
{
$this->title = $title;
return $this;
}
public function getAuthors(): ?string
{
return $this->authors;
}
public function setAuthors(?string $authors): static
{
$this->authors = $authors;
return $this;
}
public function getEdition(): ?string
{
return $this->edition;
}
public function setEdition(?string $edition): static
{
$this->edition = $edition;
return $this;
}
public function getPublication(): ?string
{
return $this->publication;
}
public function setPublication(?string $publication): static
{
$this->publication = $publication;
return $this;
}
public function getCategorie(): ?string
{
return $this->categorie;
}
public function setCategorie(?string $categorie): static
{
$this->categorie = $categorie;
return $this;
}
public function getPages(): ?string
{
return $this->pages;
}
public function setPages(?string $pages): static
{
$this->pages = $pages;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): static
{
$this->description = $description;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): static
{
$this->image = $image;
return $this;
}
}