for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Rafał Muszyński <[email protected]>
* @copyright 2015 Sourcefabric z.ú.
* @license http://www.gnu.org/licenses/gpl-3.0.txt
*/
namespace Newscoop\PaywallBundle\Provider;
use Sylius\Component\Currency\Provider\CurrencyProvider as BaseProvider;
use Newscoop\PaywallBundle\Entity\Repository\CurrencyRepository;
* Currency Provider class.
class CurrencyProvider extends BaseProvider
{
* @param CurrencyRepository $currencyRepository
public function __construct(CurrencyRepository $currencyRepository)
parent::__construct($currencyRepository);
}
* {@inheritdoc}
public function getAvailableCurrencies()
return $this->currencyRepository
findAllAvailable()
Sylius\Component\Resourc...ory\RepositoryInterface
findAll()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
->findAllAvailable()
->getResult();
* Gets the default currency.
*
* @return null|Sylius\Component\Currency\Model\CurrencyInterface
public function getDefaultCurrency()
->findOneBy(array(
'isActive' => true,
'default' => true,
));
* @return array
public function getEnabledCurrencies()
->findBy(array('isActive' => true));
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.