CodeTrait::setCode()   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 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: siim
5
 * Date: 15.02.19
6
 * Time: 9:02
7
 */
8
9
namespace Sf4\Api\Entity\Traits;
10
11
trait CodeTrait
12
{
13
14
    /** @var string|null $code */
15
    protected $code;
16
17
    /**
18
     * @return string|null
19
     */
20
    public function getCode(): ?string
21
    {
22
        return $this->code;
23
    }
24
25
    /**
26
     * @param string|null $code
27
     */
28
    public function setCode(?string $code): void
29
    {
30
        $this->code = $code;
31
    }
32
}
33