1 | <?php |
||
6 | class ResolveCache implements \JsonSerializable |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | private $path; |
||
12 | |||
13 | /** |
||
14 | * @var array|null|\string[] |
||
15 | */ |
||
16 | private $filters; |
||
17 | |||
18 | /** |
||
19 | * @var bool |
||
20 | */ |
||
21 | private $force; |
||
22 | |||
23 | /** |
||
24 | * @param string $path |
||
25 | * @param string[]|null $filters |
||
26 | * @param bool $force |
||
27 | */ |
||
28 | public function __construct($path, array $filters = null, $force = false) |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getPath() |
||
42 | |||
43 | /** |
||
44 | * @return null|\string[] |
||
45 | */ |
||
46 | public function getFilters() |
||
50 | |||
51 | /** |
||
52 | * @return bool |
||
53 | */ |
||
54 | public function isForce() |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function jsonSerialize() |
||
66 | |||
67 | /** |
||
68 | * @param string $json |
||
69 | * |
||
70 | * @return static |
||
71 | */ |
||
72 | public static function jsonDeserialize($json) |
||
86 | } |
||
87 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.