Passed
Pull Request — develop (#1491)
by Rabie
14:52
created

UsersShared::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Longman\TelegramBot\Entities;
4
5
/**
6
 * This object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button.
7
 *
8
 * @link https://core.telegram.org/bots/api#usersshared
9
 *
10
 * @method int          getRequestId() Identifier of the request
11
 * @method SharedUser[] getUsers()     Information about users shared with the bot.
12
 */
13
class UsersShared extends Entity
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    protected function subEntities(): array
19
    {
20
        return [
21
            'users' => [SharedUser::class],
22
        ];
23
    }
24
}
25