This is automatic generated document for things in Swow\Psr7\Message\WebSocketFrame class
Class WebSocketFrame
Properties
protected $payloadData Methods
Method __construct
public function __construct ( bool $fin , bool $rsv1 , bool $rsv2 , bool $rsv3 , int $opcode , int $payloadLength , string $maskingKey , mixed $payloadData ) public function getHeaderSize ( ) : int Method getPayloadData
public function getPayloadData ( ) : StreamInterface Method getPayloadLength
public function getPayloadLength ( ) : int Method setPayloadData
public function setPayloadData ( mixed $payloadData ) : static Method toString
public function toString ( bool $withoutPayloadData ) : string protected function updateHeader ( ) : void Method withFin
public function withFin ( bool $fin ) : static Method withMaskingKey
public function withMaskingKey ( string $maskingKey ) : static Method withOpcode
public function withOpcode ( int $opcode ) : static Method withPayloadData
public function withPayloadData ( mixed $payloadData ) : static Method withPayloadLength
public function withPayloadLength ( int $payloadLength ) : static Method withRSV1
public function withRSV1 ( bool $rsv1 ) : static Method withRSV2
public function withRSV2 ( bool $rsv2 ) : static Method withRSV3
public function withRSV3 ( bool $rsv3 ) : static