GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ShippingOption   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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