1 | <?php |
||
13 | class HtmlMenu extends HtmlCollection { |
||
14 | |||
15 | public function __construct($identifier, $items=array()) { |
||
22 | |||
23 | /** |
||
24 | * Sets the menu type |
||
25 | * @param string $type one of text,item |
||
26 | * @return \Ajax\semantic\html\collections\HtmlMenu |
||
27 | */ |
||
28 | public function setType($type=""){ |
||
31 | |||
32 | public function setActiveItem($index){ |
||
39 | |||
40 | /** |
||
41 | * {@inheritDoc} |
||
42 | * @see \Ajax\common\html\html5\HtmlCollection::addItem() |
||
43 | */ |
||
44 | public function addItem($item){ |
||
48 | /** |
||
49 | * {@inheritDoc} |
||
50 | * @see \Ajax\common\html\html5\HtmlCollection::createItem() |
||
51 | */ |
||
52 | protected function createItem($value) { |
||
56 | |||
57 | public function setInverted(){ |
||
60 | } |
This check looks at variables that have been passed in as parameters and 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.