GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

File::setFile()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * File.php
4
 *
5
 * @package         Obfuscator
6
 * @subpackage      Obfuscator
7
 */
8
9
namespace Naneau\Obfuscator\Obfuscator\Event;
10
11
use Symfony\Component\EventDispatcher\Event;
12
13
/**
14
 * File
15
 *
16
 * A file is being obfuscated
17
 *
18
 * @category        Naneau
19
 * @package         Obfuscator
20
 * @subpackage      Obfuscator
21
 */
22
class File extends Event
23
{
24
    /**
25
     * The file
26
     *
27
     * @var string
28
     **/
29
    private $file;
30
31
    /**
32
     * Constructor
33
     *
34
     * @param string $file
35
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
36
     **/
37
    public function __construct($file)
38
    {
39
        $this->setFile($file);
40
    }
41
42
    /**
43
     * Get the file
44
     *
45
     * @return string
46
     */
47
    public function getFile()
48
    {
49
        return $this->file;
50
    }
51
52
    /**
53
     * Set the file
54
     *
55
     * @param string $file
56
     * @return parent
57
     */
58
    public function setFile($file)
59
    {
60
        $this->file = $file;
61
62
        return $this;
63
    }
64
}
65