PHP Class Crummy\Phlack\Common\Matcher\CommandNameMatcher

Inheritance: implements Crummy\Phlack\Common\Matcher\MatcherInterface
Datei anzeigen Open project: mcrumm/phlack Class Usage Examples

Protected Properties

Property Type Description
$commandName

Public Methods

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

Method Details

__construct() public method

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

getCommandName() public method

public getCommandName ( ) : null | string
return null | string

matches() public method

public matches ( Crummy\Phlack\WebHook\CommandInterface $command ) : boolean
$command Crummy\Phlack\WebHook\CommandInterface
return boolean

setCommandName() public method

public setCommandName ( $command )
$command

Property Details

$commandName protected_oe property

protected $commandName