Completed
Push — master ( 2cf029...6368d5 )
by Joachim
12:58
created

Invoice::getCreditNoteNumber()   A

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 Loevgaard\DandomainFoundation\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Loevgaard\DandomainDateTime\DateTimeImmutable;
7
use Loevgaard\DandomainFoundation;
8
use Loevgaard\DandomainFoundation\Entity\Generated\InvoiceInterface;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...erated\InvoiceInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
use Loevgaard\DandomainFoundation\Entity\Generated\InvoiceTrait;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...\Generated\InvoiceTrait was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
11
/**
12
 * @ORM\Entity()
13
 * @ORM\Table(name="ldf_invoices")
14
 */
15
class Invoice extends AbstractEntity implements InvoiceInterface
16
{
17
    use InvoiceTrait;
18
19
    /**
20
     * @var int
21
     *
22
     * @ORM\Id
23
     * @ORM\GeneratedValue
24
     * @ORM\Column(type="integer")
25
     **/
26
    protected $id;
27
28
    /**
29
     * @var string|null
30
     *
31
     * @ORM\Column(nullable=true, type="string", length=191)
32
     */
33
    protected $creditNoteNumber;
34
35
    /**
36
     * @var \DateTimeImmutable|null
37
     *
38
     * @ORM\Column(nullable=true, type="datetime_immutable")
39
     */
40
    protected $date;
41
42
    /**
43
     * @var bool|null
44
     *
45
     * @ORM\Column(nullable=true, type="boolean")
46
     */
47
    protected $isPaid;
48
49
    /**
50
     * @var int|null
51
     *
52
     * @ORM\Column(nullable=true, type="integer")
53
     */
54
    protected $number;
55
56
    /**
57
     * @var string|null
58
     *
59
     * @ORM\Column(nullable=true, type="string", length=191)
60
     */
61
    protected $state;
62
63
    /**
64
     * @return int
65
     */
66
    public function getId(): int
67
    {
68
        return (int)$this->id;
69
    }
70
71
    /**
72
     * @param int $id
73
     * @return Invoice
74
     */
75
    public function setId($id)
76
    {
77
        $this->id = $id;
78
        return $this;
79
    }
80
81
    /**
82
     * @return null|string
83
     */
84
    public function getCreditNoteNumber()
85
    {
86
        return $this->creditNoteNumber;
87
    }
88
89
    /**
90
     * @param null|string $creditNoteNumber
91
     * @return Invoice
92
     */
93
    public function setCreditNoteNumber($creditNoteNumber)
94
    {
95
        $this->creditNoteNumber = $creditNoteNumber;
96
        return $this;
97
    }
98
99
    /**
100
     * @return \DateTimeImmutable|null
101
     */
102
    public function getDate()
103
    {
104
        return $this->date;
105
    }
106
107
    /**
108
     * @param \DateTimeImmutable|null $date
109
     * @return Invoice
110
     */
111
    public function setDate($date)
112
    {
113
        $this->date = $date;
114
        return $this;
115
    }
116
117
    /**
118
     * @return bool|null
119
     */
120
    public function getisPaid()
121
    {
122
        return $this->isPaid;
123
    }
124
125
    /**
126
     * @param bool|null $isPaid
127
     * @return Invoice
128
     */
129
    public function setIsPaid($isPaid)
130
    {
131
        $this->isPaid = $isPaid;
132
        return $this;
133
    }
134
135
    /**
136
     * @return int|null
137
     */
138
    public function getNumber()
139
    {
140
        return $this->number;
141
    }
142
143
    /**
144
     * @param int|null $number
145
     * @return Invoice
146
     */
147
    public function setNumber($number)
148
    {
149
        $this->number = $number;
150
        return $this;
151
    }
152
153
    /**
154
     * @return null|string
155
     */
156
    public function getState()
157
    {
158
        return $this->state;
159
    }
160
161
    /**
162
     * @param null|string $state
163
     * @return Invoice
164
     */
165
    public function setState($state)
166
    {
167
        $this->state = $state;
168
        return $this;
169
    }
170
}
171