Total Complexity | 6 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class ShippingOption |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * Shipping option identifier |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | private $id; |
||
21 | |||
22 | /** |
||
23 | * Option title |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | private $title; |
||
28 | |||
29 | /** |
||
30 | * List of price portions |
||
31 | * |
||
32 | * @var LabeledPrice[] |
||
33 | */ |
||
34 | private $prices; |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getId(): string |
||
40 | { |
||
41 | return $this->id; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @param string $id |
||
46 | */ |
||
47 | public function setId(string $id): void |
||
48 | { |
||
49 | $this->id = $id; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getTitle(): string |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @param string $title |
||
62 | */ |
||
63 | public function setTitle(string $title): void |
||
64 | { |
||
65 | $this->title = $title; |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * @return LabeledPrice[] |
||
70 | */ |
||
71 | public function getPrices(): array |
||
74 | } |
||
75 | |||
76 | /** |
||
77 | * @param LabeledPrice[] $prices |
||
78 | */ |
||
79 | public function setPrices(array $prices): void |
||
82 | } |
||
83 | |||
84 | } |