Passed
Push — master ( f8cb93...547c02 )
by Siim
12:38
created

CodeTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setCode() 0 3 1
A getCode() 0 3 1
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