Completed
Push — 772-prevent_system_command_cal... ( 995cdc...9c7b1d )
by Armando
02:28
created

GameHighScore::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
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\Games;
12
13
use Longman\TelegramBot\Entities\Entity;
14
use Longman\TelegramBot\Entities\User;
15
16
/**
17
 * Class GameHighScore
18
 *
19
 * This object represents one row of the high scores table for a game.
20
 *
21
 * @link https://core.telegram.org/bots/api#gamehighscore
22
 *
23
 * @method int  getPosition() Position in high score table for the game
24
 * @method User getUser()     User
25
 * @method int  getScore()    Score
26
 **/
27
class GameHighScore extends Entity
28
{
29
    /**
30
     * {@inheritdoc}
31
     */
32
    protected function subEntities()
33
    {
34
        return [
35
            'user' => User::class,
36
        ];
37
    }
38
}
39