ShippingOption::subEntities()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace TelegramBot\Entities\Payments;
4
5
use TelegramBot\Entity;
6
7
/**
8
 * Class ShippingOption
9
 *
10
 * This object represents one shipping option.
11
 *
12
 * @link https://core.telegram.org/bots/api#shippingoption
13
 *
14
 * @method string         getId()       Shipping option identifier
15
 * @method string         getTitle()    Option title
16
 * @method LabeledPrice[] getPrices()   List of price portions
17
 **/
18
class ShippingOption extends Entity
19
{
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected function subEntities(): array
25
    {
26
        return [
27
            'prices' => [LabeledPrice::class],
28
        ];
29
    }
30
31
}
32