| Conditions | 4 |
| Paths | 5 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function __construct(array $options = array()) |
||
| 41 | { |
||
| 42 | if (!isset($options['path'])) { |
||
| 43 | throw new Exception\InvalidArgumentException('path key in options argument required'); |
||
| 44 | } |
||
| 45 | $this->path = $options['path']; |
||
| 46 | $this->alt = (isset($options['alt'])) ? $options['alt'] : null; |
||
| 47 | $this->place = (isset($options['place'])) ? $options['place'] : null; |
||
| 48 | } |
||
| 49 | |||
| 66 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: