Book::getAuthor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Entity\Library;
4
5
use App\Repository\BookRepository;
6
use Doctrine\ORM\Mapping as ORM;
7
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
59
    {
60
        return $this->author;
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
71
    {
72
        return $this->image;
73
    }
74
75
    public function setImage(string $image): static
76
    {
77
        $this->image = $image;
78
79
        return $this;
80
    }
81
}
82