No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
98ccc1b
... +8 ...
26d04fe
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
2 | 2 | /** |
|
3 | 3 | * Class SettingsContainerAbstract |
|
4 | 4 | * |
|
5 | - | * @filesource SettingsContainerAbstract.php |
|
6 | 5 | * @created 28.08.2018 |
|
7 | - | * @package chillerlan\Settings |
|
8 | 6 | * @author Smiley <smiley@chillerlan.net> |
|
9 | 7 | * @copyright 2018 Smiley |
|
10 | 8 | * @license MIT |
15 | 13 | use ReflectionClass, ReflectionProperty; |
|
16 | 14 | ||
17 | 15 | use function call_user_func, call_user_func_array, get_object_vars, json_decode, json_encode, method_exists, property_exists; |
|
16 | + | use const JSON_THROW_ON_ERROR; |
|
18 | 17 | ||
19 | 18 | abstract class SettingsContainerAbstract implements SettingsContainerInterface{ |
|
20 | 19 | ||
21 | 20 | /** |
|
22 | 21 | * SettingsContainerAbstract constructor. |
|
23 | - | * |
|
24 | - | * @param iterable|null $properties |
|
25 | 22 | */ |
|
26 | 23 | public function __construct(iterable $properties = null){ |
|
27 | 24 |
35 | 32 | /** |
|
36 | 33 | * calls a method with trait name as replacement constructor for each used trait |
|
37 | 34 | * (remember pre-php5 classname constructors? yeah, basically this.) |
|
38 | - | * |
|
39 | - | * @return void |
|
40 | 35 | */ |
|
41 | 36 | protected function construct():void{ |
|
42 | 37 | $traits = (new ReflectionClass($this))->getTraits(); |
53 | 48 | ||
54 | 49 | /** |
|
55 | 50 | * @inheritdoc |
|
56 | - | * |
|
57 | - | * @return mixed|null |
|
58 | 51 | */ |
|
59 | 52 | public function __get(string $property){ |
|
60 | 53 |
Files | Complexity | Coverage |
---|---|---|
src/SettingsContainerAbstract.php | ø | 100.00% |
Project Totals (1 files) | 25 | 100.00% |
26d04fe
6ca7564
d54f4db
1546c8a
4bad23d
9d933a7
1d844c4
801ca1c
49c08b0
98ccc1b