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

BlackHole::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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