Sanity::__get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace XoopsModules\Wggithub\Github;
4
5
6
/**
7
 * Undefined member access check. Stolen from Nette\Object (http://nette.org).
8
 */
9
abstract class Sanity
10
{
11
    /**
12
     * @param $name
13
     */
14
    public function & __get($name)
15
    {
16
        throw new LogicException('Cannot read an undeclared property ' . \get_class($this) . "::\$$name.");
17
    }
18
19
20
    /**
21
     * @param $name
22
     * @param $value
23
     */
24
    public function __set($name, $value)
25
    {
26
        throw new LogicException('Cannot write to an undeclared property ' . \get_class($this) . "::\$$name.");
27
    }
28
29
}
30