Add Game object and a GameInterface for use with tests.

This commit is contained in:
Austen McDonald
2016-05-13 20:51:11 -07:00
parent f06299cc7f
commit bd21736687
2 changed files with 45 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
declare (strict_types=1);
namespace LotGD\Core;
class Game implements GameInterface
{
private $entityManager;
private $eventManager;
/**
* Returns the game's entity manager.
* @return EntityManagerInterface The game's database entity manager.
*/
public function getEntityManager()
{
return $this->entityManager;
}
/**
* Returns the game's event manager.
* @return EventManager The game's event manager.
*/
public function getEventManager()
{
return $this->eventManager;
}
}
+17
View File
@@ -0,0 +1,17 @@
<?php
declare (strict_types=1);
namespace LotGD\Core;
interface GameInterface
{
/**
* @{inheritdoc}
*/
public function getEntityManager();
/**
* @{inheritdoc}
*/
public function getEventManager();
}