IsSuccessSpecification::isSatisfiedBy()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 1
c 0
b 0
f 0
nc 2
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Korobovn\CloudPayments\Message\Strategy\Specification;
6
7
class IsSuccessSpecification implements SpecificationInterface
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function isSatisfiedBy(array $response): bool
13
    {
14
        return isset($response['Success']) && $response['Success'] === true;
15
    }
16
}
17