| Total Complexity | 9 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | #[ORM\Entity(repositoryClass: BookRepository::class)] |
||
| 9 | class Book |
||
| 10 | { |
||
| 11 | #[ORM\Id] |
||
| 12 | #[ORM\GeneratedValue] |
||
| 13 | #[ORM\Column] |
||
| 14 | /** @phpstan-ignore-next-line */ |
||
| 15 | private ?int $id = null; |
||
| 16 | |||
| 17 | #[ORM\Column(length: 255)] |
||
| 18 | private ?string $title = null; |
||
| 19 | |||
| 20 | #[ORM\Column(length: 255)] |
||
| 21 | private ?string $isbn = null; |
||
| 22 | |||
| 23 | #[ORM\Column(length: 255)] |
||
| 24 | private ?string $author = null; |
||
| 25 | |||
| 26 | #[ORM\Column(length: 255)] |
||
| 27 | private ?string $image = null; |
||
| 28 | |||
| 29 | public function getId(): ?int |
||
| 30 | { |
||
| 31 | return $this->id; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getTitle(): ?string |
||
| 35 | { |
||
| 36 | return $this->title; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function setTitle(string $title): static |
||
| 40 | { |
||
| 41 | $this->title = $title; |
||
| 42 | |||
| 43 | return $this; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getIsbn(): ?string |
||
| 47 | { |
||
| 48 | return $this->isbn; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function setIsbn(string $isbn): static |
||
| 52 | { |
||
| 53 | $this->isbn = $isbn; |
||
| 54 | |||
| 55 | return $this; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getAuthor(): ?string |
||
| 61 | } |
||
| 62 | |||
| 63 | public function setAuthor(string $author): static |
||
| 64 | { |
||
| 65 | $this->author = $author; |
||
| 66 | |||
| 67 | return $this; |
||
| 68 | } |
||
| 69 | |||
| 70 | public function getImage(): ?string |
||
| 73 | } |
||
| 74 | |||
| 75 | public function setImage(string $image): static |
||
| 76 | { |
||
| 80 | } |
||
| 81 | } |
||
| 82 |