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