PhaseUpdateEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

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