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   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 55
c 0
b 0
f 0
wmc 5
lcom 1
cbo 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getOriginValue() 0 4 1
A getNewValue() 0 4 1
A getProperty() 0 4 1
A isFor() 0 4 1
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