Passed
Push — master ( 68f720...5e727b )
by Paul
10:53
created

BlackHole   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 71.43%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 3
eloc 4
c 2
b 0
f 1
dl 0
loc 15
ccs 5
cts 7
cp 0.7143
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __get() 0 3 1
A __construct() 0 3 1
A __call() 0 3 1
1
<?php
2
3
namespace GeminiLabs\SiteReviews;
4
5
class BlackHole extends \ArrayObject
6
{
7 7
    public function __construct()
8
    {
9 7
        parent::__construct([]);
10 7
    }
11
12
    public function __get($property)
13
    {
14
        return;
15
    }
16
17 7
    public function __call($method, $args)
18
    {
19 7
        glsr_log()->error("Call to a member function $method() on an unknown class");
20 7
    }
21
}
22