<commit_before><?php
/*
 * WellCommerce Open-Source E-Commerce Platform
 * 
 * This file is part of the WellCommerce package.
 *
 * (c) <NAME> <<EMAIL>>
 * 
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code.
 */

namespace WellCommerce\Bundle\NewsBundle\Factory;

use WellCommerce\Bundle\CoreBundle\Factory\AbstractFactory;
use WellCommerce\Bundle\NewsBundle\Entity\NewsInterface;

/**
 * Class NewsFactory
 *
 * @author  <NAME> <<EMAIL>>
 */
class NewsFactory extends AbstractFactory
{
    /**
     * @var string
     */
    protected $supportsInterface = NewsInterface::class;

    /**
     * @return NewsInterface
     */
    public function create()
    {
        /** @var $news NewsInterface */
        $news = $this->init();
        $news->setFeatured(false);
        $news->setPublish(true);
        $news->setStartDate(new \DateTime());

        return $news;
    }
}<commit_msg>MOved factories to doctrine bundle >> EntityFactoryInterface<commit_after><?php
/*
 * WellCommerce Open-Source E-Commerce Platform
 * 
 * This file is part of the WellCommerce package.
 *
 * (c) <NAME> <<EMAIL>>
 * 
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code.
 */

namespace WellCommerce\Bundle\NewsBundle\Factory;

use WellCommerce\Bundle\DoctrineBundle\Factory\AbstractEntityFactory;
use WellCommerce\Bundle\NewsBundle\Entity\NewsInterface;

/**
 * Class NewsFactory
 *
 * @author  <NAME> <<EMAIL>>
 */
class NewsFactory extends AbstractEntityFactory
{
    /**
     * @var string
     */
    protected $supportsInterface = NewsInterface::class;

    /**
     * @return NewsInterface
     */
    public function create()
    {
        /** @var $news NewsInterface */
        $news = $this->init();
        $news->setFeatured(false);
        $news->setPublish(true);
        $news->setStartDate(new \DateTime());

        return $news;
    }
}
{'fraction_non_alphanumeric': 0.12368024132730016, 'fraction_numerical': 0.0, 'mean_word_length': 3.0529531568228108, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1514328', 'n_tokens_mistral': 572, 'n_tokens_neox': 563, 'n_words': 147}