public __construct ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Currency\CurrencyInterface $currency ) | ||
$product | Sonata\Component\Product\ProductInterface | |
$currency | Sonata\Component\Currency\CurrencyInterface |
public function __construct(ProductInterface $product, CurrencyInterface $currency)
{
parent::__construct(sprintf("Product '%s' is not available for currency '%s'", $product->getName(), $currency->getLabel()));
}