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