PHP Class Crummy\Phlack\Common\Matcher\CommandNameMatcher

Inheritance: implements Crummy\Phlack\Common\Matcher\MatcherInterface
Afficher le fichier Open project: mcrumm/phlack Class Usage Examples

Protected Properties

Свойство Type Description
$commandName

Méthodes publiques

Méthode Description
__construct ( string | null $commandName = null )
getCommandName ( ) : null | string
matches ( Crummy\Phlack\WebHook\CommandInterface $command ) : boolean
setCommandName ( $command )

Method Details

__construct() public méthode

public __construct ( string | null $commandName = null )
$commandName string | null

getCommandName() public méthode

public getCommandName ( ) : null | string
Résultat null | string

matches() public méthode

public matches ( Crummy\Phlack\WebHook\CommandInterface $command ) : boolean
$command Crummy\Phlack\WebHook\CommandInterface
Résultat boolean

setCommandName() public méthode

public setCommandName ( $command )
$command

Property Details

$commandName protected_oe property

protected $commandName