for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Korobovn\CloudPayments\Message\Strategy\Specification;
/**
* @see https://developers.cloudpayments.ru/#sozdanie-podpiski-na-rekurrentnye-platezhi
*/
class SubscriptionSpecification implements SpecificationInterface
{
* {@inheritdoc}
public function isSatisfiedBy(array $response): bool
return ! empty($response['Model']['Id']) &&
(new IsSuccessSpecification)->isSatisfiedBy($response) &&
(new NotMessageSpecification)->isSatisfiedBy($response);
}