2013-11-25 00:02:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Types;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface for elements being able to contain other elements
|
|
|
|
*
|
|
|
|
* @author steeffeen
|
|
|
|
*/
|
|
|
|
interface Container {
|
|
|
|
|
|
|
|
/**
|
2013-12-31 02:55:19 +01:00
|
|
|
* Add a new Child
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2013-12-31 02:55:19 +01:00
|
|
|
* @param Renderable $child
|
|
|
|
* The child 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();
|
|
|
|
}
|