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.

OrderInfo   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 5
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 OrderInfo
18
 *
19
 * This object represents information about an order.
20
 *
21
 * @link https://core.telegram.org/bots/api#orderinfo
22
 *
23
 * @method string          getName()            Optional. User name
24
 * @method string          getPhoneNumber()     Optional. User's phone number
25
 * @method string          getEmail()           Optional. User email
26
 * @method ShippingAddress getShippingAddress() Optional. User shipping address
27
 **/
28
class OrderInfo extends Entity
29
{
30
    /**
31
     * {@inheritdoc}
32
     */
33
    protected function subEntities(): array
34
    {
35
        return [
36
            'shipping_address' => ShippingAddress::class,
37
        ];
38
    }
39
}
40