GameHighScore   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

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