Total Complexity | 3 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class AdvPrice |
||
17 | { |
||
18 | use Fillable; |
||
19 | |||
20 | /** |
||
21 | * Код услуги |
||
22 | * |
||
23 | * @JMS\XmlAttribute() |
||
24 | * @JMS\Type("int") |
||
25 | */ |
||
26 | private int $code; |
||
27 | |||
28 | /** |
||
29 | * Цена услуги |
||
30 | * @JMS\XmlAttribute() |
||
31 | * @JMS\Type("float") |
||
32 | */ |
||
33 | private float $price; |
||
34 | |||
35 | /** |
||
36 | * Наименование услуги |
||
37 | * @JMS\XmlValue() |
||
38 | * @JMS\Type("string") |
||
39 | */ |
||
40 | private string $name; |
||
41 | |||
42 | /** |
||
43 | * @return int |
||
44 | */ |
||
45 | 3 | public function getCode(): int |
|
46 | { |
||
47 | 3 | return $this->code; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return float |
||
52 | */ |
||
53 | 2 | public function getPrice(): float |
|
54 | { |
||
55 | 2 | return $this->price; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | 3 | public function getName(): string |
|
64 | } |
||
65 | } |
||
66 |