| 1 | <?php |
||
| 15 | final class SceneManager |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * A list with all the scenes. |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $scenes; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Initializes a new instance of the SceneManager class. |
||
| 26 | */ |
||
| 27 | public function __construct() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Adds the given scene to this manager. |
||
| 34 | * |
||
| 35 | * @param SceneInterface $scene The scene to add. |
||
| 36 | */ |
||
| 37 | public function addScene(SceneInterface $scene) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Gets the scenes that this scene manager has. |
||
| 44 | * |
||
| 45 | * @return SceneInterface[] |
||
| 46 | */ |
||
| 47 | public function getScenes() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Executes the given event. |
||
| 54 | * |
||
| 55 | * @param string $name The name of the event to execute. |
||
| 56 | * @return array |
||
| 57 | */ |
||
| 58 | public function execute($name) |
||
| 68 | } |
||
| 69 |