Passed
Push — master ( 7f7158...8d1ed5 )
by Armando
02:55
created

ShippingOption::getPrices()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

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
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Entities\Payments;
12
13
use Longman\TelegramBot\Entities\Entity;
14
15
/**
16
 * Class ShippingOption
17
 *
18
 * This object represents one shipping option.
19
 *
20
 * @link https://core.telegram.org/bots/api#shippingoption
21
 *
22
 * @method string         getId()     Shipping option identifier
23
 * @method string         getTitle()  Option title
24
 * @method LabeledPrice[] getPrices() List of price portions
25
 **/
26
class ShippingOption extends Entity
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31
    protected function subEntities()
32
    {
33
        return [
34
            'prices' => [LabeledPrice::class],
35
        ];
36
    }
37
}
38