src/AbstractJsonEncoder.php
public function rewind()
    {
        if ($this->step === 0) {
            return;
        }

        $this->stack = [];
        $this->stackType = [];
        $this->valueStack = [];
        $this->errors = [];
        $this->newLine = false;
        $this->first = true;
        $this->line = 1;
        $this->column = 1;
        $this->step = 0;

        $this->processValue($this->initialValue);
    }
public function rewind()
    {
        if ($this->step === 0) {
            return;
        }

        $this->stack = [];
        $this->stackType = [];
        $this->valueStack = [];
        $this->errors = [];
        $this->newLine = false;
        $this->first = true;
        $this->line = 1;
        $this->column = 1;
        $this->step = 0;

        $this->processValue($this->initialValue);
    }
public function rewind ( ) { if ( $ this -> step === 0 ) { return ; } $ this -> stack = [ ] ; $ this -> stackType = [ ] ; $ this -> valueStack = [ ] ; $ this -> errors = [ ] ; $ this -> newLine = false ; $ this -> first = true ; $ this -> line = 1 ; $ this -> column = 1 ; $ this -> step = 0 ; $ this -> processValue ( $ this -> initialValue ) ; }
Returns the JSON encoding to the beginning.
Returns the JSON encoding to the beginning .