matches() public method

public matches ( Crummy\Phlack\WebHook\CommandInterface $command ) : boolean
$command Crummy\Phlack\WebHook\CommandInterface
return boolean
Example #1
0
 /**
  * {@inheritdoc}
  */
 public function matches(CommandInterface $command)
 {
     return null === $this->commandName ? $command instanceof SlashCommand : $command instanceof SlashCommand && parent::matches($command);
 }