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\Quest;
use Badger\Component\Game\Factory\SimpleFactoryInterface;
use Doctrine\Common\Collections\ArrayCollection;
/**
* Quest Factory
*
* @author Olivier Soulet <[email protected]>
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
*/
class QuestFactory implements SimpleFactoryInterface
{
* {@inheritdoc}
public function create()
$quest = new Quest();
$quest->setTags(new ArrayCollection());
return $quest;
}