PHP 클래스 Kraken\Channel\Extra\Response

파일 보기 프로젝트 열기: kraken-php/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$channel Kraken\Channel\ChannelInterface
$message string | string[] | Erro\Error | Exceptio\Exception
$params mixed[]
$protocol Kraken\Channel\Protocol\ProtocolInterface

공개 메소드들

메소드 설명
__construct ( Kraken\Channel\ChannelInterface $channel, Kraken\Channel\Protocol\ProtocolInterface $protocol, string | string[] | Erro\Error | Exceptio\Exception $message, mixed[] $params = [] )
__destruct ( )
__invoke ( ) : Kraken\Promise\PromiseInterface Send the prepared response.
call ( ) : Kraken\Promise\PromiseInterface Send the prepared response.

보호된 메소드들

메소드 설명
send ( Kraken\Promise\PromiseInterface $promise ) : Kraken\Promise\PromiseInterface Send the request using passed Promise.

메소드 상세

__construct() 공개 메소드

public __construct ( Kraken\Channel\ChannelInterface $channel, Kraken\Channel\Protocol\ProtocolInterface $protocol, string | string[] | Erro\Error | Exceptio\Exception $message, mixed[] $params = [] )
$channel Kraken\Channel\ChannelInterface
$protocol Kraken\Channel\Protocol\ProtocolInterface
$message string | string[] | Erro\Error | Exceptio\Exception
$params mixed[]

__destruct() 공개 메소드

public __destruct ( )

__invoke() 공개 메소드

Send the prepared response.
public __invoke ( ) : Kraken\Promise\PromiseInterface
리턴 Kraken\Promise\PromiseInterface

call() 공개 메소드

Send the prepared response.
public call ( ) : Kraken\Promise\PromiseInterface
리턴 Kraken\Promise\PromiseInterface

send() 보호된 메소드

Send the request using passed Promise.
protected send ( Kraken\Promise\PromiseInterface $promise ) : Kraken\Promise\PromiseInterface
$promise Kraken\Promise\PromiseInterface
리턴 Kraken\Promise\PromiseInterface

프로퍼티 상세

$channel 보호되어 있는 프로퍼티

protected ChannelInterface,Kraken\Channel $channel
리턴 Kraken\Channel\ChannelInterface

$message 보호되어 있는 프로퍼티

protected string|string[]|Error,Erro|Exception,Exceptio $message
리턴 string | string[] | Erro\Error | Exceptio\Exception

$params 보호되어 있는 프로퍼티

protected mixed[] $params
리턴 mixed[]

$protocol 보호되어 있는 프로퍼티

protected ProtocolInterface,Kraken\Channel\Protocol $protocol
리턴 Kraken\Channel\Protocol\ProtocolInterface