ShippingOption::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type\Shipping;
6
7
/**
8
 * This object represents one shipping option.
9
 *
10
 * More on https://core.telegram.org/bots/api#shippingoption
11
 */
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
56
    {
57
        return $this->title;
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
72
    {
73
        return $this->prices;
74
    }
75
76
    /**
77
     * @param LabeledPrice[] $prices
78
     */
79
    public function setPrices(array $prices): void
80
    {
81
        $this->prices = $prices;
82
    }
83
84
}