Phone   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace CdekSDK2\BaseTypes;
6
7
use JMS\Serializer\Annotation\Type;
8
9
/**
10
 * Class Phone
11
 * Номер телефона (мобильный/городской):
12
 * @package CdekSDK2\BaseTypes
13
 */
14
class Phone extends Base
15
{
16
    /**
17
     * Номер телефона
18
     * @Type("string")
19
     * @var string
20
     */
21
    public $number;
22
23
    /**
24
     * Добавочный номер
25
     * @Type("string")
26
     * @var string
27
     */
28
    public $additional;
29
30
    public function __construct(array $param = [])
31
    {
32
        parent::__construct($param);
33
        $this->rules = [
34
            'number' => 'required',
35
        ];
36
    }
37
}
38