Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function __construct(\ReflectionProperty $prop, $message = "", $code = 0, ?\Throwable $previous = null){ |
||
11 | |||
12 | $propName = $prop->getName(); |
||
13 | $className = $prop->getDeclaringClass()->getName(); |
||
14 | $modifiers = implode(' ', \Reflection::getModifierNames($prop->getModifiers())); |
||
15 | |||
16 | $message = "Invalid visibility keyword: ". |
||
17 | "Field '$propName' of '$className' set to '$modifiers', `protected` expected."; |
||
18 | parent::__construct($prop, $message, $code, $previous); |
||
19 | } |
||
20 | } |