| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class DefinitionNamespace |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $bundle; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $node; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * DefinitionNamespace constructor. |
||
| 30 | * |
||
| 31 | * @param string $bundle |
||
| 32 | * @param string $node |
||
| 33 | */ |
||
| 34 | public function __construct(?string $bundle, ?string $node) |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getBundle(): ?string |
||
| 47 | { |
||
| 48 | return $this->bundle; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getNode(): ?string |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
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: