CheckFileTokenEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 28
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getFile() 0 4 1
A getStackPointer() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Symplify
5
 * Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
6
 */
7
8
namespace Symplify\PHP7_CodeSniffer\EventDispatcher\Event;
9
10
use PHP_CodeSniffer\Files\File;
11
use Symfony\Component\EventDispatcher\Event;
12
13
final class CheckFileTokenEvent extends Event
14
{
15
    /**
16
     * @var File
17
     */
18
    private $file;
19
20
    /**
21
     * @var int
22
     */
23
    private $stackPointer;
24
25 3
    public function __construct(File $file, int $stackPointer)
26
    {
27 3
        $this->file = $file;
28 3
        $this->stackPointer = $stackPointer;
29 3
    }
30
31 2
    public function getFile() : File
32
    {
33 2
        return $this->file;
34
    }
35
36 2
    public function getStackPointer() : int
37
    {
38 2
        return $this->stackPointer;
39
    }
40
}
41