| 1 | <?php |
||
| 13 | trait DefaultElementContent |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Used by addChild, therefore has to be defined here |
||
| 18 | */ |
||
| 19 | abstract public function addChildInternal(\hemio\html\Interface_\HtmlCode $child); |
||
| 20 | |||
| 21 | /** |
||
| 22 | * This is not implemented in (@link ElementContent) since some elements |
||
| 23 | * may only allow a restricted set of elements to be added as childs. This |
||
| 24 | * is implemented via type hinting as feature for the API user. |
||
| 25 | * |
||
| 26 | * @param \hemio\html\Interface_\HtmlCode $child |
||
| 27 | * @return \hemio\html\Interface_\HtmlCode |
||
| 28 | */ |
||
| 29 | public function addChild(\hemio\html\Interface_\HtmlCode $child) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Returns always true |
||
| 37 | * |
||
| 38 | * @param \hemio\html\Interface_\HtmlCode $child |
||
| 39 | * @return boolean |
||
| 40 | */ |
||
| 41 | public function isValidChild(\hemio\html\Interface_\HtmlCode $child) |
||
| 45 | } |
||
| 46 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.