Service   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 33
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 3 1
A getName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DalliSDK\Models;
6
7
use DalliSDK\Traits\Fillable;
8
use JMS\Serializer\Annotation as JMS;
9
10
/**
11
 * Модель типов доставки
12
 *
13
 * @see https://api.dalli-service.com/v1/doc/request-types-of-delivery
14
 * @JMS\XmlRoot("service")
15
 */
16
class Service
17
{
18
    use Fillable;
19
20
    /**
21
     * Код типа
22
     *
23
     * @JMS\Type("int")
24
     */
25
    public int $code;
26
27
    /**
28
     * Название типа
29
     *
30
     * @JMS\Type("string")
31
     */
32
    public string $name;
33
34
35
    /**
36
     * @return int
37
     */
38 3
    public function getCode(): int
39
    {
40 3
        return $this->code;
41
    }
42
43
    /**
44
     * @return string
45
     */
46 3
    public function getName(): string
47
    {
48 3
        return $this->name;
49
    }
50
}
51