PhaseUpdateEvent::getPhase()   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\game;
10
11
use pocketmine\event\Cancellable;
12
use pocketmine\event\Event;
13
14
class PhaseUpdateEvent extends Event implements Cancellable
15
{
16
    /** @var int $phase */
17
    private $phase;
18
19
    public function __construct(int $phase)
20
    {
21
        $this->phase = $phase;
22
    }
23
24
    /**
25
     * @return int
26
     */
27
    public function getPhase(): int
28
    {
29
        return $this->phase;
30
    }
31
}
32