Files
php-flasher/Filter/Specification/NotSpecification.php
T
2020-12-02 00:57:12 +01:00

27 lines
565 B
PHP

<?php
namespace Flasher\Prime\TestsFilter\Specification;
use Notify\Envelope;
final class NotSpecification implements SpecificationInterface
{
/**
* @var \Flasher\Prime\TestsFilter\Specification\SpecificationInterface
*/
private $specification;
public function __construct(SpecificationInterface $specification)
{
$this->specification = $specification;
}
/**
* @inheritDoc
*/
public function isSatisfiedBy(Envelope $envelope)
{
return !$this->specification->isSatisfiedBy($envelope);
}
}