1 | <?php |
||
8 | class HtmlSegmentGroups extends HtmlCollection{ |
||
9 | |||
10 | |||
11 | public function __construct( $identifier, $items=array()){ |
||
16 | |||
17 | |||
18 | protected function createItem($value){ |
||
21 | |||
22 | /** |
||
23 | * Defines the group type |
||
24 | * @param string $type one of "raised","stacked","piled" default : "" |
||
25 | * @return \Ajax\semantic\html\elements\HtmlSegmentGroups |
||
26 | */ |
||
27 | public function setType($type){ |
||
30 | |||
31 | public function setSens($sens="vertical"){ |
||
34 | |||
35 | |||
36 | public static function group($identifier,$items=array(),$type="",$sens="vertical"){ |
||
41 | |||
42 | } |
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.