Completed
Push — master ( f0cbfc...7fa5ba )
by Paweł
08:59
created

ComicBook::getAuthorFirstName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace AppBundle\Entity;
13
14
use Sylius\Component\Resource\Model\ResourceInterface;
15
16
/**
17
 * @author Łukasz Chruściel <[email protected]>
18
 */
19
final class ComicBook implements ResourceInterface
20
{
21
    /**
22
     * @var int
23
     */
24
    private $id;
25
26
    /**
27
     * @var string
28
     */
29
    private $authorFirstName;
30
31
    /**
32
     * @var string
33
     */
34
    private $authorLastName;
35
36
    /**
37
     * @var string
38
     */
39
    private $title;
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function getId()
45
    {
46
        return $this->id;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getTitle()
53
    {
54
        return $this->title;
55
    }
56
57
    /**
58
     * @param string $title
59
     */
60
    public function setTitle($title)
61
    {
62
        $this->title = $title;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getAuthorFirstName()
69
    {
70
        return $this->authorFirstName;
71
    }
72
73
    /**
74
     * @param string $authorFirstName
75
     */
76
    public function setAuthorFirstName($authorFirstName)
77
    {
78
        $this->authorFirstName = $authorFirstName;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getAuthorLastName()
85
    {
86
        return $this->authorLastName;
87
    }
88
89
    /**
90
     * @param string $authorLastName
91
     */
92
    public function setAuthorLastName($authorLastName)
93
    {
94
        $this->authorLastName = $authorLastName;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getAuthor()
101
    {
102
        return sprintf('%s %s', $this->authorFirstName, $this->authorLastName);
103
    }
104
}
105