PHP Class Spatie\SlashCommand\Handlers\SignatureHandler

Inheritance: extends BaseHandler
显示文件 Open project: spatie/laravel-slack-slash-command

Protected Properties

Property Type Description
$description string
$input Symfony\Component\Console\Input\StringInput
$inputDefinition Symfony\Component\Console\Input\InputDefinition
$name string
$signature string
$signatureIsBound boolean

Public Methods

Method Description
__construct ( Request $request )
canHandle ( Request $request ) : boolean
getArgument ( $foo )
getArguments ( ) : array
getDescription ( ) : string
getFullCommand ( ) : string Get the full command (eg. /bot ping).
getHelpDescription ( ) : string Get the usage description, including parameters and options.
getName ( ) : string
getOption ( $foo )
getOptions ( ) : array
getSignature ( ) : string
validate ( )

Protected Methods

Method Description
bindSignature ( )

Method Details

__construct() public method

public __construct ( Request $request )
$request Spatie\SlashCommand\Request

bindSignature() protected method

protected bindSignature ( )

canHandle() public method

public canHandle ( Request $request ) : boolean
$request Spatie\SlashCommand\Request
return boolean

getArgument() public method

public getArgument ( $foo )

getArguments() public method

public getArguments ( ) : array
return array

getDescription() public method

public getDescription ( ) : string
return string

getFullCommand() public method

Get the full command (eg. /bot ping).
public getFullCommand ( ) : string
return string

getHelpDescription() public method

Get the usage description, including parameters and options.
public getHelpDescription ( ) : string
return string

getName() public method

public getName ( ) : string
return string

getOption() public method

public getOption ( $foo )

getOptions() public method

public getOptions ( ) : array
return array

getSignature() public method

public getSignature ( ) : string
return string

validate() public method

public validate ( )

Property Details

$description protected_oe property

protected string $description
return string

$input protected_oe property

protected StringInput,Symfony\Component\Console\Input $input
return Symfony\Component\Console\Input\StringInput

$inputDefinition protected_oe property

protected InputDefinition,Symfony\Component\Console\Input $inputDefinition
return Symfony\Component\Console\Input\InputDefinition

$name protected_oe property

protected string $name
return string

$signature protected_oe property

protected string $signature
return string

$signatureIsBound protected_oe property

protected bool $signatureIsBound
return boolean