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.

RemovedEntity::getNewValue()   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
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Isolate\UnitOfWork\Entity\Value\Change;
4
5
use Isolate\UnitOfWork\Entity\Definition\Property;
6
use Isolate\UnitOfWork\Entity\Value\Change;
7
8
final class RemovedEntity implements Change
9
{
10
    /**
11
     * @var mixed
12
     */
13
    private $originValue;
14
15
    /**
16
     * @var Property
17
     */
18
    private $property;
19
20
    /**
21
     * @param Property $property
22
     * @param $originValue
23
     */
24
    public function __construct(Property $property, $originValue)
25
    {
26
        $this->property = $property;
27
        $this->originValue = $originValue;
28
    }
29
30
    /**
31
     * @return mixed
32
     */
33
    public function getOriginValue()
34
    {
35
        return $this->originValue;
36
    }
37
38
    /**
39
     * @return mixed
40
     */
41
    public function getNewValue()
42
    {
43
        return null;
44
    }
45
46
    /**
47
     * @return Property
48
     */
49
    public function getProperty()
50
    {
51
        return $this->property;
52
    }
53
54
    /**
55
     * @param $propertyName
56
     * @return bool
57
     */
58
    public function isFor($propertyName)
59
    {
60
        return $this->property->getName() === $propertyName;
61
    }
62
}
63