| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 55 | public static function createDefault(string $class): Rule | ||
| 56 |     { | ||
| 57 | $rule = new Rule($class); | ||
| 58 | |||
| 59 | $reflection = new \ReflectionClass($class); | ||
| 60 | $properties = $reflection->getProperties(); | ||
| 61 | |||
| 62 |         foreach ($properties as $property) { | ||
| 63 | /** @var \ReflectionProperty $property */ | ||
| 64 | $rule->assign($property->getName(), $property->getName()); | ||
| 65 | } | ||
| 66 | |||
| 67 | return $rule; | ||
| 68 | } | ||
| 69 | |||
| 110 |