for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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]
/** @phpstan-ignore-next-line */
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $title = null;
private ?string $isbn = null;
private ?string $author = null;
private ?string $image = null;
public function getId(): ?int
return $this->id;
}
public function getTitle(): ?string
return $this->title;
public function setTitle(string $title): static
$this->title = $title;
return $this;
public function getIsbn(): ?string
return $this->isbn;
public function setIsbn(string $isbn): static
$this->isbn = $isbn;
public function getAuthor(): ?string
return $this->author;
public function setAuthor(string $author): static
$this->author = $author;
public function getImage(): ?string
return $this->image;
public function setImage(string $image): static
$this->image = $image;