Ejemplo n.º 1
0
 public function __construct($trans)
 {
     parent::__construct($trans);
     $this->context_ = new BaseContext();
     $this->reader_ = new LookaheadReader($this);
 }
Ejemplo n.º 2
0
 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;
 }