VoidValue   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 21
c 2
b 0
f 0
wmc 3
lcom 0
cbo 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getOwner() 0 4 1
A getTarget() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace gamringer\JSONPointer;
5
6
class VoidValue
7
{
8
    protected $owner;
9
    protected $target;
10
11
    public function __construct(&$owner = null, string $target = null)
12
    {
13
        $this->owner = $owner;
14
        $this->target = $target;
15
    }
16
17
    public function &getOwner()
18
    {
19
        return $this->owner;
20
    }
21
22
    public function getTarget()
23
    {
24
        return $this->target;
25
    }
26
}
27