for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Middleland\Matchers;
trait NegativeResultTrait
{
private $result = true;
private function getValue(string $value)
if ($value[0] === '!') {
$this->result = false;
return substr($value, 1);
}
return $value;