/** * @param string $name * @param ProtocolInterface $protocol * @return bool */ public function __invoke($name, ProtocolInterface $protocol) { return StringSupport::match($this->name, $name); }
/** * @param string $exception * @param ProtocolInterface $protocol * @return bool */ public function __invoke($exception, ProtocolInterface $protocol) { return StringSupport::match($this->exception, $protocol->getException()); }