2013-11-25 00:02:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Types;
|
|
|
|
|
|
|
|
/**
|
2014-01-12 00:51:46 +01:00
|
|
|
* Interface for Elements being able to contain other Elements
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
|
|
|
* @author steeffeen
|
|
|
|
*/
|
|
|
|
interface Container {
|
|
|
|
|
|
|
|
/**
|
2013-12-31 02:55:19 +01:00
|
|
|
* Add a new Child
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-01-12 00:51:46 +01:00
|
|
|
* @param Renderable $child The Child Element to add
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function add(Renderable $child);
|
|
|
|
|
|
|
|
/**
|
2013-12-31 02:55:19 +01:00
|
|
|
* Remove all Children
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function removeChildren();
|
|
|
|
}
|