GameHighScore   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities\Games;
13
14
use Longman\TelegramBot\Entities\Entity;
15
use Longman\TelegramBot\Entities\User;
16
17
/**
18
 * Class GameHighScore
19
 *
20
 * This object represents one row of the high scores table for a game.
21
 *
22
 * @link https://core.telegram.org/bots/api#gamehighscore
23
 *
24
 * @method int  getPosition() Position in high score table for the game
25
 * @method User getUser()     User
26
 * @method int  getScore()    Score
27
 **/
28
class GameHighScore extends Entity
29
{
30
    /**
31
     * {@inheritdoc}
32
     */
33
    protected function subEntities(): array
34
    {
35
        return [
36
            'user' => User::class,
37
        ];
38
    }
39
}
40