| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __construct(bool $returnArray = false) |
||
| 23 | { |
||
| 24 | $options = self::VALUE_TYPED | self::VALUE_UNKNOWN_TO_NULL; |
||
| 25 | if ($returnArray) { |
||
| 26 | $options |= self::RETURN_ARRAY; |
||
| 27 | } else { |
||
| 28 | $options |= self::RETURN_OBJECT; |
||
| 29 | } |
||
| 30 | parent::__construct($options); |
||
| 31 | |||
| 32 | // Disallow useless properties |
||
| 33 | $propertyFilter = new Disallowed(); |
||
| 34 | $propertyFilter->addProperty('AolVersion'); |
||
| 35 | $this->setPropertyFilter($propertyFilter); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |