Completed
Push — master ( 1f7e67...a1b9db )
by
unknown
07:31
created

ShippingOption::getTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace TelegramBot\Api\Types\Payments;
4
5
use TelegramBot\Api\BaseType;
6
7
/**
8
 * Class ShippingOption
9
 * This object represents one shipping option.
10
 *
11
 * @package TelegramBot\Api\Types\Payments
12
 */
13
class ShippingOption extends BaseType
14
{
15
    /**
16
     * @var array
17
     */
18
    static protected $requiredParams = ['id', 'title', 'prices'];
19
20
    /**
21
     * @var array
22
     */
23
    static protected $map = [
24
        'id' => true,
25
        'title' => true,
26
        'prices' => ArrayOfLabeledPrice::class
27
    ];
28
29
    /**
30
     * Shipping option identifier
31
     *
32
     * @var string
33
     */
34
    protected $id;
35
36
    /**
37
     * Option title
38
     *
39
     * @var string
40
     */
41
    protected $title;
42
43
    /**
44
     * List of price portions
45
     *
46
     * @var array
47
     */
48
    protected $prices;
49
50
    /**
51
     * @author MY
52
     * @return string
53
     */
54
    public function getId()
55
    {
56
        return $this->id;
57
    }
58
59
    /**
60
     * @author MY
61
     * @param string $id
62
     */
63
    public function setId($id)
64
    {
65
        $this->id = $id;
66
    }
67
68
    /**
69
     * @author MY
70
     * @return string
71
     */
72
    public function getTitle()
73
    {
74
        return $this->title;
75
    }
76
77
    /**
78
     * @author MY
79
     * @param string $title
80
     */
81
    public function setTitle($title)
82
    {
83
        $this->title = $title;
84
    }
85
86
    /**
87
     * @author MY
88
     * @return array
89
     */
90
    public function getPrices()
91
    {
92
        return $this->prices;
93
    }
94
95
    /**
96
     * @author MY
97
     * @param array $prices
98
     */
99
    public function setPrices($prices)
100
    {
101
        $this->prices = $prices;
102
    }
103
}
104