Passed
Pull Request — develop (#1493)
by Rabie
06:35
created

UsersShared   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
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