1 | <?php |
||
13 | class FrontWidget extends NativeWidget |
||
14 | { |
||
15 | public static $name; |
||
16 | |||
17 | /** |
||
18 | * Display widget compiled data. |
||
19 | * @param array|null $params |
||
20 | * @return null|string |
||
21 | * @throws \Exception |
||
22 | */ |
||
23 | public static function widget(array $params = null) |
||
32 | |||
33 | /** |
||
34 | * Check if widget is enabled |
||
35 | * @param string|null $name |
||
36 | * @return bool |
||
37 | */ |
||
38 | public static function enabled($name = null) |
||
56 | |||
57 | } |
If an expression can have both
false
, andnull
as possible values. It is generally a good practice to always use strict comparison to clearly distinguish between those two values.