p_ = $p; } public function write() { if ($this->first_) { $this->first_ = false; $this->colon_ = true; } else { $this->p_->getTransport()->write( $this->colon_ ? TSimpleJSONProtocol::COLON : TSimpleJSONProtocol::COMMA ); $this->colon_ = !$this->colon_; } } }