1 | <?php |
||
12 | class ButtonElement extends Element |
||
13 | { |
||
14 | /** @var string HTML content */ |
||
15 | protected $content = ''; |
||
16 | |||
17 | /** |
||
18 | * @param string $name |
||
19 | * @param string $content HTML content of the button. You have to escape it yourself. |
||
20 | */ |
||
21 | public function __construct($name, $content = '') |
||
26 | |||
27 | /** |
||
28 | * The HTML representation of this element |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | public function toHTML() |
||
36 | |||
37 | } |
||
38 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.