1 | <?php |
||
17 | class LoaderLoadException extends \RuntimeException |
||
18 | { |
||
19 | private $resource; |
||
20 | private $type; |
||
21 | |||
22 | public function __construct(string $resource, string $type = null) |
||
28 | |||
29 | public function getResource() : string |
||
33 | |||
34 | public function getType() : string |
||
38 | |||
39 | private function composeMessage(string $resource, string $type = null) : string |
||
49 | } |
||
50 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.