1 | <?php |
||
13 | class Option extends Abstract_\ElementContent implements Interface_\ContentModelSelect |
||
14 | { |
||
15 | |||
16 | public static function tagName() |
||
20 | |||
21 | /** |
||
22 | * |
||
23 | * @param string $strValue |
||
24 | * @param Interface_\ContentModelText $objText |
||
25 | */ |
||
26 | function __construct($strValue, Interface_\ContentModelText $objText) |
||
31 | |||
32 | public function isValidChild(Interface_\HtmlCode $child) |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | * @param Interface_\ContentModelText $string |
||
40 | * @return Interface_\ContentModelText |
||
41 | */ |
||
42 | public function addChild(Interface_\ContentModelText $string) |
||
47 | } |
||
48 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.