| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public static function fromArray(array $data): self |
||
| 17 | { |
||
| 18 | return new self( |
||
| 19 | new DaysEnum($data['changeDay']), |
||
| 20 | $data['dayOfMonth'], |
||
| 21 | new DaysEnum($data['firstDay']), |
||
| 22 | new PeriodEnum($data['olderThanPeriod']), |
||
| 23 | $data['olderThanValue'], |
||
| 24 | new AutomaticLockEnum($data['type']) |
||
| 25 | ); |
||
| 74 |