Crummy\Phlack\Common\Matcher\CommandNameMatcher::matches PHP 메소드

matches() 공개 메소드

public matches ( Crummy\Phlack\WebHook\CommandInterface $command ) : boolean
$command Crummy\Phlack\WebHook\CommandInterface
리턴 boolean
    public function matches(CommandInterface $command)
    {
        return $this->getCommandName() === $command->get('command');
    }

Usage Example

예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function matches(CommandInterface $command)
 {
     return null === $this->commandName ? $command instanceof SlashCommand : $command instanceof SlashCommand && parent::matches($command);
 }