public function __construct($trans)
 {
     parent::__construct($trans);
     $this->context_ = new BaseContext();
     $this->reader_ = new LookaheadReader($this);
 }
 public function __construct($trans, $strictRead = false, $strictWrite = true)
 {
     parent::__construct($trans);
     $this->strictRead_ = $strictRead;
     $this->strictWrite_ = $strictWrite;
 }
 /**
  * Constructor of <code>TProtocolDecorator</code> class.
  * Encloses the specified protocol.
  *
  * @param TProtocol $protocol All operations will be forward to this instance. Must be non-null.
  */
 protected function __construct(TProtocol $protocol)
 {
     parent::__construct($protocol->getTransport());
     $this->concreteProtocol_ = $protocol;
 }