| Conditions | 5 |
| Paths | 9 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function __construct(array $values = [], ?string $order = null, array $custom = []) |
||
| 30 | { |
||
| 31 | if ([] !== $values) { |
||
| 32 | if (array_key_exists('value', $values)) { |
||
| 33 | $order = $values['value']; |
||
| 34 | } |
||
| 35 | |||
| 36 | if (array_key_exists('order', $values)) { |
||
| 37 | $order = $values['order']; |
||
| 38 | } |
||
| 39 | |||
| 40 | if (array_key_exists('custom', $values)) { |
||
| 41 | $custom = $values['custom']; |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | $this->order = $order; |
||
| 46 | $this->custom = $custom; |
||
| 47 | } |
||
| 49 |