コード例 #1
0
ファイル: RuleMatchName.php プロジェクト: khelle/surume
 /**
  * @param string $name
  * @param ChannelProtocolInterface $protocol
  * @return bool
  */
 public function __invoke($name, ChannelProtocolInterface $protocol)
 {
     return StringSupport::match($this->name, $name);
 }
コード例 #2
0
ファイル: RuleMatchException.php プロジェクト: khelle/surume
 /**
  * @param string $exception
  * @param ChannelProtocolInterface $protocol
  * @return bool
  */
 public function __invoke($exception, ChannelProtocolInterface $protocol)
 {
     return StringSupport::match($this->exception, $protocol->getException());
 }