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

CheckFileTokenEvent::getFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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