for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Badger\Bundle\GameBundle\Factory;
use Badger\Bundle\GameBundle\Entity\Adventure;
use Badger\Bundle\GameBundle\Entity\AdventureStep;
use Badger\Component\Game\Factory\SimpleFactoryInterface;
/**
* @author Marie Bochu <[email protected]>
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
*/
class AdventureFactory implements SimpleFactoryInterface
{
* {@inheritdoc}
public function create()
$adventure = new Adventure();
$adventure->addStep(new AdventureStep());
return $adventure;
}