Optional method to set the internal stream handle
public static createFromStream ( $stream ) : |
||
$stream | ||
리턴 |
/** * setUp * * @access public * @return void */ public function setUp() { if (is_null($this->stream)) { $this->stream = \Kafka\Socket::createFromStream(fopen('php://temp', 'w+b')); } $this->stream->rewind(); }
/** * setUp * * @access public * @return void */ public function setUp() { $this->stream = \Kafka\Socket::createFromStream(fopen('php://temp', 'w+b')); }