PHP Class Kraken\Console\Client\Command\Command

Inheritance: extends Symfony\Component\Console\Command\Command, implements CommandInterface
Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Protected Properties

Свойство Type Description
$async boolean
$channel Kraken\Channel\ChannelInterface
$receiver string

Méthodes publiques

Méthode Description
__construct ( Kraken\Channel\ChannelInterface $channel, string $receiver )
__destruct ( )
isAsync ( )

Méthodes protégées

Méthode Description
cancelMessage ( $exception, $message ) : string
command ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed[] This method should contain command logic.
config ( ) This method should contain command configuration.
configure ( )
construct ( ) This method will be invoked during command construction.
destruct ( ) This method will be invoked during command destruction.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
failureMessage ( $exception, $message ) : string
informServer ( $commandParent, $commandName, $commandParams = [] )
onCancel ( Erro\Error | Exceptio\Exception $ex ) : mixed
onFailure ( Erro\Error | Exceptio\Exception $ex ) : mixed
onMessage ( mixed $value ) : mixed
onStart ( )
onStop ( )
onSuccess ( $value ) : mixed
successData ( mixed[] $input )
successMessage ( $message ) : string
validateCreateFlags ( integer | string $flags ) : integer
validateDestroyFlags ( integer | string $flags ) : integer

Method Details

__construct() public méthode

public __construct ( Kraken\Channel\ChannelInterface $channel, string $receiver )
$channel Kraken\Channel\ChannelInterface
$receiver string

__destruct() public méthode

public __destruct ( )

cancelMessage() protected méthode

protected cancelMessage ( $exception, $message ) : string
$exception
$message
Résultat string

command() abstract protected méthode

This method should contain command logic.
abstract protected command ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed[]
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat mixed[]

config() abstract protected méthode

This method should contain command configuration.
abstract protected config ( )

configure() protected méthode

protected configure ( )

construct() protected méthode

This method will be invoked during command construction.
protected construct ( )

destruct() protected méthode

This method will be invoked during command destruction.
protected destruct ( )

execute() protected méthode

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat integer | null | void

failureMessage() protected méthode

protected failureMessage ( $exception, $message ) : string
$exception
$message
Résultat string

informServer() protected méthode

protected informServer ( $commandParent, $commandName, $commandParams = [] )

isAsync() public méthode

public isAsync ( )

onCancel() protected méthode

protected onCancel ( Erro\Error | Exceptio\Exception $ex ) : mixed
$ex Erro\Error | Exceptio\Exception
Résultat mixed

onFailure() protected méthode

protected onFailure ( Erro\Error | Exceptio\Exception $ex ) : mixed
$ex Erro\Error | Exceptio\Exception
Résultat mixed

onMessage() protected méthode

protected onMessage ( mixed $value ) : mixed
$value mixed
Résultat mixed

onStart() protected méthode

protected onStart ( )

onStop() protected méthode

protected onStop ( )

onSuccess() protected méthode

protected onSuccess ( $value ) : mixed
$value
Résultat mixed

successData() protected méthode

protected successData ( mixed[] $input )
$input mixed[]

successMessage() protected méthode

protected successMessage ( $message ) : string
$message
Résultat string

validateCreateFlags() protected méthode

protected validateCreateFlags ( integer | string $flags ) : integer
$flags integer | string
Résultat integer

validateDestroyFlags() protected méthode

protected validateDestroyFlags ( integer | string $flags ) : integer
$flags integer | string
Résultat integer

Property Details

$async protected_oe property

protected bool $async
Résultat boolean

$channel protected_oe property

protected ChannelInterface,Kraken\Channel $channel
Résultat Kraken\Channel\ChannelInterface

$receiver protected_oe property

protected string $receiver
Résultat string