Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function __construct(bool $returnArray = false) |
||
21 | { |
||
22 | $options = self::KEY_LOWER | self::VALUE_BOOLEAN_TO_STRING | self::VALUE_REG_EXP_LOWER; |
||
23 | if ($returnArray) { |
||
24 | $options |= self::RETURN_ARRAY; |
||
25 | } else { |
||
26 | $options |= self::RETURN_OBJECT; |
||
27 | } |
||
28 | parent::__construct($options); |
||
29 | } |
||
30 | } |
||
31 |