| Conditions | 6 |
| Paths | 17 |
| Total Lines | 24 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function __construct(array $values = [], string $field = 'type', array $groups = [], array $map = [], bool $disabled = false) |
||
| 27 | { |
||
| 28 | if ([] !== $values) { |
||
| 29 | if (array_key_exists('field', $values)) { |
||
| 30 | $field = $values['field']; |
||
| 31 | } |
||
| 32 | |||
| 33 | if (array_key_exists('groups', $values)) { |
||
| 34 | $groups = $values['groups']; |
||
| 35 | } |
||
| 36 | |||
| 37 | if (array_key_exists('map', $values)) { |
||
| 38 | $map = $values['map']; |
||
| 39 | } |
||
| 40 | |||
| 41 | if (array_key_exists('disabled', $values)) { |
||
| 42 | $disabled = $values['disabled']; |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | $this->field = $field; |
||
| 47 | $this->groups = $groups; |
||
| 48 | $this->map = $map; |
||
| 49 | $this->disabled = $disabled; |
||
| 50 | } |
||
| 52 |