Basket/Handler/CouponHandler.php
public function handle(array $options, BasketInterface $basket, Client $client): void
    {
        try {
            $client
                ->payCoupon()
                ->setOwnerRunetId($options['user'])
                ->setCouponCode($options['coupon'])
                ->setProductId($options['product'])
                ->getResult();
        } catch (RunetIdException $exception) {
            $options['exception_handler']($exception);
        }
    }
public function handle(array $options, BasketInterface $basket, Client $client): void
    {
        try {
            $client
                ->payCoupon()
                ->setOwnerRunetId($options['user'])
                ->setCouponCode($options['coupon'])
                ->setProductId($options['product'])
                ->getResult();
        } catch (RunetIdException $exception) {
            $options['exception_handler']($exception);
        }
    }
public function handle ( array $ options , BasketInterface $ basket , Client $ client ) : void { try { $ client -> payCoupon ( ) -> setOwnerRunetId ( $ options [ 'user' ] ) -> setCouponCode ( $ options [ 'coupon' ] ) -> setProductId ( $ options [ 'product' ] ) -> getResult ( ) ; } catch ( RunetIdException $ exception ) { $ options [ 'exception_handler' ] ( $ exception ) ; } }
{@inheritdoc}
{