Completed
Push — master ( e7303e...8fbc07 )
by Armando
01:58
created

OrderInfo::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Entities\Payments;
12
13
use Longman\TelegramBot\Entities\Entity;
14
15
/**
16
 * Class OrderInfo
17
 *
18
 * This object represents information about an order.
19
 *
20
 * @link https://core.telegram.org/bots/api#orderinfo
21
 *
22
 * @method string          getName()            Optional. User name
23
 * @method string          getPhoneNumber()     Optional. User's phone number
24
 * @method string          getEmail()           Optional. User email
25
 * @method ShippingAddress getShippingAddress() Optional. User shipping address
26
 **/
27
class OrderInfo extends Entity
28
{
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function subEntities()
33
    {
34
        return [
35
            'shipping_address' => ShippingAddress::class,
36
        ];
37
    }
38
}
39