Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
9 / 9 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
NullModule | |
100.00% |
9 / 9 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__call | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
__callStatic | |
100.00% |
8 / 8 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | /** |
3 | * Jingga |
4 | * |
5 | * PHP Version 8.1 |
6 | * |
7 | * @package phpOMS\Module |
8 | * @copyright Dennis Eichhorn |
9 | * @license OMS License 2.0 |
10 | * @version 1.0.0 |
11 | * @link https://jingga.app |
12 | */ |
13 | declare(strict_types=1); |
14 | |
15 | namespace phpOMS\Module; |
16 | |
17 | use phpOMS\Log\FileLogger; |
18 | |
19 | /** |
20 | * Module abstraction class. |
21 | * |
22 | * @package phpOMS\Module |
23 | * @license OMS License 2.0 |
24 | * @link https://jingga.app |
25 | * @since 1.0.0 |
26 | */ |
27 | final class NullModule extends ModuleAbstract |
28 | { |
29 | /** {@inheritdoc} */ |
30 | public function __call(string $name, array $arguments) : void |
31 | { |
32 | self::__callStatic($name, $arguments); |
33 | } |
34 | |
35 | /** {@inheritdoc} */ |
36 | public static function __callStatic(string $name, array $arguments) : void |
37 | { |
38 | FileLogger::getInstance() |
39 | ->error( |
40 | FileLogger::MSG_FULL, [ |
41 | 'message' => 'Expected module/controller but got NullModule.', |
42 | 'line' => __LINE__, |
43 | 'file' => self::class, |
44 | ] |
45 | ); |
46 | } |
47 | } |