for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Larium\Specification;
class NotSpecification extends LeafSpecification
{
private $wrapped;
public function __construct(Specification $x)
$this->wrapped = $x;
}
public function isSatisfiedBy(Candidate $candidate): bool
return !$this->wrapped->isSatisfiedBy($candidate);