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