Total Complexity | 9 |
Total Lines | 72 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 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 | 4 | public function getId(): ?int |
|
32 | } |
||
33 | |||
34 | 6 | public function getTitle(): ?string |
|
35 | { |
||
36 | 6 | return $this->title; |
|
37 | } |
||
38 | |||
39 | 2 | public function setTitle(string $title): static |
|
44 | } |
||
45 | |||
46 | 4 | public function getIsbn(): ?string |
|
49 | } |
||
50 | |||
51 | 2 | public function setIsbn(string $isbn): static |
|
52 | { |
||
53 | 2 | $this->isbn = $isbn; |
|
54 | |||
55 | 2 | return $this; |
|
56 | } |
||
57 | |||
58 | 5 | public function getAuthor(): ?string |
|
61 | } |
||
62 | |||
63 | 2 | public function setAuthor(string $author): static |
|
64 | { |
||
65 | 2 | $this->author = $author; |
|
66 | |||
67 | 2 | return $this; |
|
68 | } |
||
69 | |||
70 | 5 | public function getImage(): ?string |
|
71 | { |
||
72 | 5 | return $this->image; |
|
73 | } |
||
74 | |||
75 | 2 | public function setImage(string $image): static |
|
80 | } |
||
81 | } |
||
82 |