for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dazzle\Channel\Router\RuleMatch;
use Dazzle\Channel\Protocol\ProtocolInterface;
use Dazzle\Util\Support\StringSupport;
class RuleMatchException
{
/**
* @var string
*/
protected $exception;
* @param string $exception
public function __construct($exception)
$this->exception = $exception;
}
*
public function __destruct()
unset($this->exception);
* @param ProtocolInterface $protocol
* @return bool
public function __invoke($exception, ProtocolInterface $protocol)
return StringSupport::match($this->exception, $protocol->getException());