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