PlayerStreakEvent::getCount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Copyright (c) 2018 VectorNetworkProject. All rights reserved. MIT license.
4
 *
5
 * GitHub: https://github.com/VectorNetworkProject/TheMix
6
 * Website: https://www.vector-network.tk
7
 */
8
9
namespace VectorNetworkProject\TheMix\game\event\player;
10
11
use pocketmine\event\Cancellable;
12
use pocketmine\event\player\PlayerEvent;
13
use pocketmine\Player;
14
15
class PlayerStreakEvent extends PlayerEvent implements Cancellable
16
{
17
    /** @var int $count */
18
    private $count;
19
20
    /**
21
     * PlayerStreakEvent constructor.
22
     *
23
     * @param Player $player
24
     * @param int    $count
25
     */
26
    public function __construct(Player $player, int $count)
27
    {
28
        $this->player = $player;
29
        $this->count = $count;
30
    }
31
32
    /**
33
     * @return int
34
     */
35
    public function getCount(): int
36
    {
37
        return $this->count;
38
    }
39
}
40