Kraken\Channel\Router\RouterRule::match PHP Method

match() public method

Match given message protocol.
public match ( string $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol ) : boolean
$sender string
$protocol Kraken\Channel\Protocol\ProtocolInterface
return boolean
    public function match($sender, ProtocolInterface $protocol)
    {
        $callback = $this->matcher;
        return $callback($sender, $protocol);
    }