ChangeFile::getCurrentFile()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Solidifier\Events;
4
5
use Solidifier\Event;
6
7
class ChangeFile extends Event
8
{
9
    const
10
        EVENT_NAME = 'traverse.changeFile';
11
    
12
    private
13
        $currentFile;
0 ignored issues
show
Coding Style introduced by
The visibility should be declared for property $currentFile.

The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using

class A {
    var $property;
}

the property is implicitly global.

To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.

Loading history...
14
    
15
    public function __construct($currentFile)
16
    {
17
        $this->currentFile = $currentFile;
18
    }
19
    
20
    public function getCurrentFile()
21
    {
22
        return $this->currentFile;
23
    }
24
}