GameHighScore::subEntities()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace TelegramBot\Entities\Games;
4
5
use TelegramBot\Entities\User;
6
use TelegramBot\Entity;
7
8
/**
9
 * Class GameHighScore
10
 *
11
 * This object represents one row of the high scores table for a game.
12
 *
13
 * @link https://core.telegram.org/bots/api#gamehighscore
14
 *
15
 * @method int  getPosition() Position in high score table for the game
16
 * @method User getUser()     User
17
 * @method int  getScore()    Score
18
 **/
19
class GameHighScore extends Entity
20
{
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected function subEntities(): array
26
    {
27
        return [
28
            'user' => User::class,
29
        ];
30
    }
31
32
}
33