1 | <?php |
||
14 | class Icon extends AbstractCellDecorator |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Path to file |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $path; |
||
22 | |||
23 | /** |
||
24 | * Alt attribute (optional) |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $alt; |
||
28 | |||
29 | /** |
||
30 | * Place a decorator |
||
31 | * @var null|string type |
||
32 | */ |
||
33 | protected $place = null; |
||
34 | |||
35 | /** |
||
36 | * |
||
37 | * @param array $options |
||
38 | * @throws Exception\InvalidArgumentException |
||
39 | */ |
||
40 | public function __construct(array $options = array()) |
||
49 | |||
50 | /** |
||
51 | * Rendering decorator |
||
52 | * @param string $context |
||
53 | * @return string |
||
54 | */ |
||
55 | public function render($context) |
||
65 | } |
||
66 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: