Пример #1
0
 public function __construct()
 {
     parent::__construct();
     $this->out = '';
     $this->bits = array();
     $this->bitcount = 0;
 }
Пример #2
0
 /**
  * @param string $str
  * @param PhpAmqpLib_Wire_IO_AbstractIO $io
  * @param int $timeout
  */
 public function __construct($str, PhpAmqpLib_Wire_IO_AbstractIO $io = null, $timeout = 0)
 {
     parent::__construct();
     $this->str = $str;
     $this->str_length = mb_strlen($this->str, 'ASCII');
     $this->io = $io;
     $this->offset = 0;
     $this->bitcount = $this->bits = 0;
     $this->timeout = $timeout;
 }