You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-06 13:02:55 +01:00
27 lines
565 B
PHP
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);
|
|
}
|
|
}
|