<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\CoreBundle\Manager\Front;

use WellCommerce\Bundle\CoreBundle\Manager\ManagerInterface;
use WellCommerce\Bundle\CoreBundle\Provider\ProviderCollection;
use WellCommerce\Bundle\MultiStoreBundle\Context\ShopContextInterface;

/**
 * Interface FrontManagerInterface
 *
 * @author  <NAME> <<EMAIL>>
 */
interface FrontManagerInterface extends ManagerInterface
{
    /**
     * Sets providers collection
     *
     * @param ProviderCollection $providers
     */
    public function setProviders(ProviderCollection $providers);

    /**
     * Returns providers collection
     *
     * @return ProviderCollection
     */
    public function getProviders();

    /**
     * Returns single provider by type
     *
     * @param $type
     *
     * @return \WellCommerce\Bundle\CoreBundle\Provider\ProviderInterface
     */
    public function getProvider($type);

    /**
     * @param ShopContextInterface $shopContext
     */
    public function setShopContext(ShopContextInterface $shopContext);

    /**
     * Shorthand to get category provider
     *
     * @return \WellCommerce\Bundle\CategoryBundle\Provider\CategoryProviderInterface
     */
    public function getCategoryProvider();

    /**
     * Shorthand to get product provider
     *
     * @return \WellCommerce\Bundle\ProductBundle\Provider\ProductProviderInterface
     */
    public function getProductProvider();

    /**
     * Shorthand to get product status provider
     *
     * @return \WellCommerce\Bundle\ProductBundle\Provider\ProductStatusProviderInterface
     */
    public function getProductStatusProvider();

    /**
     * Shorthand to get cart provider
     *
     * @return \WellCommerce\Bundle\CartBundle\Provider\CartProviderInterface
     */
    public function getCartProvider();
}<commit_msg>Added shorthand for cart products provider<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\CoreBundle\Manager\Front;

use WellCommerce\Bundle\CoreBundle\Manager\ManagerInterface;
use WellCommerce\Bundle\CoreBundle\Provider\ProviderCollection;
use WellCommerce\Bundle\MultiStoreBundle\Context\ShopContextInterface;

/**
 * Interface FrontManagerInterface
 *
 * @author  <NAME> <<EMAIL>>
 */
interface FrontManagerInterface extends ManagerInterface
{
    /**
     * Sets providers collection
     *
     * @param ProviderCollection $providers
     */
    public function setProviders(ProviderCollection $providers);

    /**
     * Returns providers collection
     *
     * @return ProviderCollection
     */
    public function getProviders();

    /**
     * Returns single provider by type
     *
     * @param $type
     *
     * @return \WellCommerce\Bundle\CoreBundle\Provider\ProviderInterface
     */
    public function getProvider($type);

    /**
     * @param ShopContextInterface $shopContext
     */
    public function setShopContext(ShopContextInterface $shopContext);

    /**
     * Shorthand to get category provider
     *
     * @return \WellCommerce\Bundle\CategoryBundle\Provider\CategoryProviderInterface
     */
    public function getCategoryProvider();

    /**
     * Shorthand to get product provider
     *
     * @return \WellCommerce\Bundle\ProductBundle\Provider\ProductProviderInterface
     */
    public function getProductProvider();

    /**
     * Shorthand to get product status provider
     *
     * @return \WellCommerce\Bundle\ProductBundle\Provider\ProductStatusProviderInterface
     */
    public function getProductStatusProvider();

    /**
     * Shorthand to get cart provider
     *
     * @return \WellCommerce\Bundle\CartBundle\Provider\CartProviderInterface
     */
    public function getCartProvider();

    /**
     * Shorthand to get cart products provider
     *
     * @return \WellCommerce\Bundle\CartBundle\Provider\CartProductProviderInterface
     */
    public function getCartProductProvider();
}
{'fraction_non_alphanumeric': 0.09193584820420149, 'fraction_numerical': 0.0, 'mean_word_length': 3.1931818181818183, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '5046127', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1123, 'n_words': 276}