Completed
Branch master (c5ceed)
by Tomáš
33:54 queued 13:17
created

CheckFileTokenEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 28
ccs 0
cts 13
cp 0
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\Event;
9
10
use Symfony\Component\EventDispatcher\Event;
11
use Symplify\PHP7_CodeSniffer\File\File;
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
    public function __construct(File $file, int $stackPointer)
26
    {
27
        $this->file = $file;
28
        $this->stackPointer = $stackPointer;
29
    }
30
31
    public function getFile() : File
32
    {
33
        return $this->file;
34
    }
35
36
    public function getStackPointer() : int
37
    {
38
        return $this->stackPointer;
39
    }
40
}
41