清空响应输出流
@return $this
770955
public function clear()
    {
        $rsp = $this->response;
        $body = $rsp->getBody();
        if ($body->isSeekable()) {
            $body->rewind();
            $body->write("\0\0");
            $body->rewind();
        }
        return $this;
    }
1262251
public function clear()
  {
    $this->setCookies( array() );
    $this->setStatusCode(200);
    $this->setHeaders( array() );
    $this->setHeader('Content-Type', 'application/json; charset=utf8');
    $this->setCacheControl('no-cache');
    $this->setCharSet('utf8');
    $this->setBody('');
    $this->setFileBody('');

    return $this;
  }
1085067
public function destroy()
    {
        if ($this->active)
        {
            $this->clear();
            if (session_status() === PHP_SESSION_ACTIVE)
                session_commit();
            $this->active = false;
        }
        return $this;
    }
1103545
public function reset()
    {
        parent::reset();

        if ($this->image) {
            $this->image();
            $this->medium_querystring = [];
            $this->filter();
            $this->clearAlternatives();
        }

        $this->format = 'guess';
        $this->quality = $this->default_quality;

        $this->debug_watermarked = false;

        return $this;
    }
1195153
public function prune()
    {
        $args = func_get_args();
        $this->prunes = array_merge($this->prunes, $this->args_to_array($args));

        return $this;
    }
165870
public function reset()
	{
		$this->sources      = array();
		$this->destinations = array();
		$this->removals     = array();
		$this->patches      = array();

		return $this;
	}
1157311
public function flush()
    {
        /** @var Node $node */
        foreach ($this->getFolder()->getNodes() as $node) {
            if ($node->details->isFile()) {
                $node->delete();
            }
        }

        return $this;
    }
187322
function clear() {
        if($this !== $this->client->channels) {
            foreach($this->data as $key => $val) {
                $this->client->channels->delete($key);
                unset($val);
            }
        }
        
        parent::clear();
        return $this;
    }
1242632
public function flush()
    {
        $n = 0;
        $children = [];
        foreach ($this->children as $k => $child) {
            if ($child !== null) {
                $child->setIndex($n);
                $child->setParent($this);
                $children[] = $child;
                ++$n;
            }
        }

        $this->children = $children;

        return $this;
    }
1199685
public function clear()
    {
        $this->clearCountryCode();
        $this->clearNationalNumber();
        $this->clearExtension();
        $this->clearItalianLeadingZero();
        $this->clearNumberOfLeadingZeros();
        $this->clearRawInput();
        $this->clearCountryCodeSource();
        $this->clearPreferredDomesticCarrierCode();
        return $this;
    }
1325328
public function unload()
    {
        $this->hook('beforeUnload');
        $this->id = null;
        $this->data = [];
        $this->dirty = [];
        $this->hook('afterUnload');

        return $this;
    }
1075783
public function clear()
    {
        parent::clear();

        $this->with = [];
        $this->primaryCriteria = null;
        $this->formatter = null;
        $this->select = null;

        return $this;
    }
1374697
public function clear_data()
	{
		$this->zipdata = '';
		$this->directory = '';
		$this->entries = 0;
		$this->file_num = 0;
		$this->offset = 0;
		return $this;
	}
474744
public function clearOutput()
    {
        ftruncate($this->stdout, 0);
        fseek($this->stdout, 0);
        $this->incrementalOutputOffset = 0;

        return $this;
    }
352616
public function clearRows()
    {
        $this->downloader->clearRows();
        $this->outputter->clearRows();
        $this->writer->clearRows();

        return $this;
    }
542157
public function reset()
    {
        $this->contentLength = 0;
        $this->data = "";
        $this->headers = [];
        $this->status = 200;

        return $this;
    }
572124
public function clearScreen() {

        // send out any escaping to implement anything sitting in the desired state
        $this->outputEscapeSequence();

        // escape sequences to clear screen and move it up
        $this->output(EscapeSequenceGenerator::generateClearScreenSequence());

        // fire the handler that indicates the cursor is sent to the left margin
        $this->carriageReturn();

        // chaining
        return $this;
    }