Test Failed
Push — master ( 8f843b...42c6ae )
by Nikolay
03:13
created

RefundPaymentSpecification::isSatisfiedBy()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
eloc 2
c 1
b 0
f 1
nc 2
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Korobovn\CloudPayments\Message\Strategy\Specification;
4
5
/**
6
 * @see https://developers.cloudpayments.ru/#vozvrat-deneg
7
 */
8
class RefundPaymentSpecification implements SpecificationInterface
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function isSatisfiedBy(array $response): bool
14
    {
15
        return ! empty($response['Model']['TransactionId']) &&
16
               (new IsSuccessSpecification)->isSatisfiedBy($response);
17
    }
18
}
19