Removed encore added books crud
This commit is contained in:
140
src/Entity/Book.php
Normal file
140
src/Entity/Book.php
Normal file
@@ -0,0 +1,140 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\BookRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity(repositoryClass: BookRepository::class)]
|
||||
class Book
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column(type: 'integer')]
|
||||
private $id;
|
||||
|
||||
#[ORM\Column(type: 'string', length: 255)]
|
||||
private $Title;
|
||||
|
||||
#[ORM\Column(type: 'string', length: 255)]
|
||||
private $language;
|
||||
|
||||
#[ORM\Column(type: 'text', nullable: true)]
|
||||
private $description;
|
||||
|
||||
#[ORM\Column(type: 'string', length: 255, nullable: true)]
|
||||
private $publisher;
|
||||
|
||||
#[ORM\Column(type: 'date', nullable: true)]
|
||||
private $publish_date;
|
||||
|
||||
#[ORM\Column(type: 'string', length: 255, nullable: true)]
|
||||
private $filename;
|
||||
|
||||
#[ORM\Column(type: 'string', length: 255, nullable: true)]
|
||||
private $original_filename;
|
||||
|
||||
#[ORM\Column(type: 'string', length: 255, nullable: true)]
|
||||
private $subtitle;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getTitle(): ?string
|
||||
{
|
||||
return $this->Title;
|
||||
}
|
||||
|
||||
public function setTitle(string $Title): self
|
||||
{
|
||||
$this->Title = $Title;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLanguage(): ?string
|
||||
{
|
||||
return $this->language;
|
||||
}
|
||||
|
||||
public function setLanguage(string $language): self
|
||||
{
|
||||
$this->language = $language;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDescription(): ?string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
public function setDescription(?string $description): self
|
||||
{
|
||||
$this->description = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPublisher(): ?string
|
||||
{
|
||||
return $this->publisher;
|
||||
}
|
||||
|
||||
public function setPublisher(?string $publisher): self
|
||||
{
|
||||
$this->publisher = $publisher;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPublishDate(): ?\DateTimeInterface
|
||||
{
|
||||
return $this->publish_date;
|
||||
}
|
||||
|
||||
public function setPublishDate(?\DateTimeInterface $publish_date): self
|
||||
{
|
||||
$this->publish_date = $publish_date;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getFilename(): ?string
|
||||
{
|
||||
return $this->filename;
|
||||
}
|
||||
|
||||
public function setFilename(?string $filename): self
|
||||
{
|
||||
$this->filename = $filename;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getOriginalFilename(): ?string
|
||||
{
|
||||
return $this->original_filename;
|
||||
}
|
||||
|
||||
public function setOriginalFilename(?string $original_filename): self
|
||||
{
|
||||
$this->original_filename = $original_filename;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSubtitle(): ?string
|
||||
{
|
||||
return $this->subtitle;
|
||||
}
|
||||
|
||||
public function setSubtitle(?string $subtitle): self
|
||||
{
|
||||
$this->subtitle = $subtitle;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user