PassportData   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 11
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 5 1
1
<?php
2
3
namespace TelegramBot\Entities\TelegramPassport;
4
5
use TelegramBot\Entity;
6
7
/**
8
 * Class PassportData
9
 *
10
 * Contains information about Telegram Passport data shared with the bot by the user.
11
 *
12
 * @link https://core.telegram.org/bots/api#passportdata
13
 *
14
 * @method EncryptedPassportElement[] getData()         Array with information about documents and other Telegram Passport elements that was shared with the bot
15
 * @method EncryptedCredentials       getCredentials()  Encrypted credentials required to decrypt the data
16
 **/
17
class PassportData extends Entity
18
{
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    protected function subEntities(): array
24
    {
25
        return [
26
            'data' => [EncryptedPassportElement::class],
27
            'credentials' => EncryptedCredentials::class,
28
        ];
29
    }
30
31
}
32