OrderInfo   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 9
ccs 0
cts 2
cp 0
rs 10
c 1
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