PHP Класс Kraken\Console\Client\Command\Command

Наследование: extends Symfony\Component\Console\Command\Command, implements CommandInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$async boolean
$channel Kraken\Channel\ChannelInterface
$receiver string

Открытые методы

Метод Описание
__construct ( Kraken\Channel\ChannelInterface $channel, string $receiver )
__destruct ( )
isAsync ( )

Защищенные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

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

__destruct() публичный Метод

public __destruct ( )

cancelMessage() защищенный Метод

protected cancelMessage ( $exception, $message ) : string
$exception
$message
Результат string

command() абстрактный защищенный Метод

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
Результат mixed[]

config() абстрактный защищенный Метод

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

configure() защищенный Метод

protected configure ( )

construct() защищенный Метод

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

destruct() защищенный Метод

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

execute() защищенный Метод

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
Результат integer | null | void

failureMessage() защищенный Метод

protected failureMessage ( $exception, $message ) : string
$exception
$message
Результат string

informServer() защищенный Метод

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

isAsync() публичный Метод

public isAsync ( )

onCancel() защищенный Метод

protected onCancel ( Erro\Error | Exceptio\Exception $ex ) : mixed
$ex Erro\Error | Exceptio\Exception
Результат mixed

onFailure() защищенный Метод

protected onFailure ( Erro\Error | Exceptio\Exception $ex ) : mixed
$ex Erro\Error | Exceptio\Exception
Результат mixed

onMessage() защищенный Метод

protected onMessage ( mixed $value ) : mixed
$value mixed
Результат mixed

onStart() защищенный Метод

protected onStart ( )

onStop() защищенный Метод

protected onStop ( )

onSuccess() защищенный Метод

protected onSuccess ( $value ) : mixed
$value
Результат mixed

successData() защищенный Метод

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

successMessage() защищенный Метод

protected successMessage ( $message ) : string
$message
Результат string

validateCreateFlags() защищенный Метод

protected validateCreateFlags ( integer | string $flags ) : integer
$flags integer | string
Результат integer

validateDestroyFlags() защищенный Метод

protected validateDestroyFlags ( integer | string $flags ) : integer
$flags integer | string
Результат integer

Описание свойств

$async защищенное свойство

protected bool $async
Результат boolean

$channel защищенное свойство

protected ChannelInterface,Kraken\Channel $channel
Результат Kraken\Channel\ChannelInterface

$receiver защищенное свойство

protected string $receiver
Результат string