ShippingOption   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 10
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
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