PHP Interface Kraken\Channel\Encoder\EncoderInterface

Mostra file Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
decode ( $str ) : Kraken\Channel\Protocol\ProtocolInterface Decode protocol from string.
encode ( ) : string Encode protocol to string.
with ( Kraken\Channel\Protocol\ProtocolInterface $protocol ) : Kraken\Channel\Encoder\EncoderInterface Set protocol to be encoded or data decoded into.

Method Details

decode() public method

Decode protocol from string.
public decode ( $str ) : Kraken\Channel\Protocol\ProtocolInterface
$str
return Kraken\Channel\Protocol\ProtocolInterface

encode() public method

Encode protocol to string.
public encode ( ) : string
return string

with() public method

Set protocol to be encoded or data decoded into.
public with ( Kraken\Channel\Protocol\ProtocolInterface $protocol ) : Kraken\Channel\Encoder\EncoderInterface
$protocol Kraken\Channel\Protocol\ProtocolInterface
return Kraken\Channel\Encoder\EncoderInterface