Total Complexity | 9 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class Log |
||
8 | { |
||
9 | /** |
||
10 | * @var null|LogInterface |
||
11 | */ |
||
12 | protected $log; |
||
13 | |||
14 | /** |
||
15 | * @param mixed $logObject |
||
16 | * @throws \LogicException |
||
17 | * @throws \InvalidArgumentException |
||
18 | */ |
||
19 | 7 | public function __construct($logObject) |
|
39 | 1 | } |
|
40 | 4 | } |
|
41 | |||
42 | /** |
||
43 | * check that class exists and throw exception if not |
||
44 | * |
||
45 | 6 | * @param string $namespace |
|
46 | * @return $this |
||
47 | 6 | * @throws \InvalidArgumentException |
|
48 | */ |
||
49 | 9 | protected function classExists($namespace) |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * @param string|array $message |
||
60 | * @return $this |
||
61 | */ |
||
62 | 2 | public function makeLog($message) |
|
71 |