Book::setImage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
ccs 0
cts 3
cp 0
crap 2
1
<?php
2
3
namespace App\Entity;
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
    private ?int $id = null;
15
16
    #[ORM\Column(length: 255)]
17
    private ?string $title = null;
18
19
    #[ORM\Column(length: 13)]
20
    private ?string $isbn = null;
21
22
    #[ORM\Column(length: 255)]
23
    private ?string $author = null;
24
25
    #[ORM\Column(length: 255)]
26
    private ?string $image = null;
27
28
    public function getId(): ?int
29
    {
30
        return $this->id;
31
    }
32
33
    public function getTitle(): ?string
34
    {
35
        return $this->title;
36
    }
37
38
    public function setTitle(string $title): static
39
    {
40
        $this->title = $title;
41
42
        return $this;
43
    }
44
45
    public function getIsbn(): ?string
46
    {
47
        return $this->isbn;
48
    }
49
50
    public function setIsbn(string $isbn): static
51
    {
52
        $this->isbn = $isbn;
53
54
        return $this;
55
    }
56
57
    public function getAuthor(): ?string
58
    {
59
        return $this->author;
60
    }
61
62
    public function setAuthor(string $author): static
63
    {
64
        $this->author = $author;
65
66
        return $this;
67
    }
68
69
    public function getImage(): ?string
70
    {
71
        return $this->image;
72
    }
73
74
    public function setImage(string $image): static
75
    {
76
        $this->image = $image;
77
78
        return $this;
79
    }
80
}
81