iDokladIdTrait::setIdokladId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Fousky\Component\iDoklad\Doctrine\Traits;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @author Lukáš Brzák <[email protected]>
9
 */
10
trait iDokladIdTrait
11
{
12
    /**
13
     * @var string|null
14
     *
15
     * @ORM\Column(name="idoklad_id", type="string", nullable=true)
16
     */
17
    protected $idokladId;
18
19
    /**
20
     * @return null|string
21
     */
22
    public function getIdokladId()
23
    {
24
        return $this->idokladId;
25
    }
26
27
    /**
28
     * @return bool
29
     */
30
    public function hasIdokladId(): bool
31
    {
32
        return null !== $this->idokladId;
33
    }
34
35
    /**
36
     * @param null|string $idokladId
37
     *
38
     * @return $this
39
     */
40
    public function setIdokladId($idokladId)
41
    {
42
        $this->idokladId = $idokladId;
43
44
        return $this;
45
    }
46
}
47