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

ShippingQuery   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 0
cts 7
cp 0
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 7 1
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
use Longman\TelegramBot\Entities\User;
15
16
/**
17
 * Class ShippingQuery
18
 *
19
 * This object contains information about an incoming shipping query.
20
 *
21
 * @link https://core.telegram.org/bots/api#shippingquery
22
 *
23
 * @method string          getId()              Unique query identifier
24
 * @method User            getFrom()            User who sent the query
25
 * @method string          getInvoicePayload()  Bot specified invoice payload
26
 * @method ShippingAddress getShippingAddress() User specified shipping address
27
 **/
28
class ShippingQuery extends Entity
29
{
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function subEntities()
34
    {
35
        return [
36
            'user'             => User::class,
37
            'shipping_address' => ShippingAddress::class,
38
        ];
39
    }
40
}
41