IsSuccessSpecification   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 8
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A isSatisfiedBy() 0 3 2
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