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.

MigrationFile::isMigrated()   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 Dami\Migration;
4
5
class MigrationFile
6
{
7
    private $name;
8
    private $path;
9
    private $version;
10
    private $className;
11
    private $isMigrated;
12
13
    /**
14
     * @param string $name       Name of migration.
15
     * @param string $path       Path of migration.
16
     * @param string $version    Version of migration.
17
     * @param string $className  Class name of migration.
18
     * @param bool   $isMigrated If migration is migrated.
19
     */
20
    public function __construct($name, $path, $version, $className, $isMigrated = false)
21
    {
22
        $this->name = $name;
23
        $this->path = $path;
24
        $this->version = $version;
25
        $this->className = $className;
26
        $this->isMigrated = $isMigrated;
27
    }
28
29
    /**
30
     * Gets name of migration.
31
     *
32
     * @return string
33
     */
34
    public function getName()
35
    {
36
        return $this->name;
37
    }
38
39
    /**
40
     * Gets path of migration.
41
     *
42
     * @return string
43
     */
44
    public function getPath()
45
    {
46
        return $this->path;
47
    }
48
49
    /**
50
     * Gets version of migration.
51
     *
52
     * @return string
53
     */
54
    public function getVersion()
55
    {
56
        return $this->version;
57
    }
58
59
    /**
60
     * Gets class name of migration.
61
     *
62
     * @return string
63
     */
64
    public function getClassName()
65
    {
66
        return $this->className;
67
    }
68
69
    /**
70
     * Check if migration is migrated.
71
     *
72
     * @return bool
73
     */
74
    public function isMigrated()
75
    {
76
        return $this->isMigrated;
77
    }
78
}
79