src/Schema/AbstractTable.php
public function setState(State $state = null): AbstractTable
    {
        $this->current = new State($this->initial->getName());

        if (!empty($state)) {
            $this->current->setName($state->getName());
            $this->current->syncState($state);
        }

        return $this;
    }
public function setState(State $state = null): AbstractTable
    {
        $this->current = new State($this->initial->getName());

        if (!empty($state)) {
            $this->current->setName($state->getName());
            $this->current->syncState($state);
        }

        return $this;
    }
public function setState ( State $ state = null ) : AbstractTable { $ this -> current = new State ( $ this -> initial -> getName ( ) ) ; if ( ! empty ( $ state ) ) { $ this -> current -> setName ( $ state -> getName ( ) ) ; $ this -> current -> syncState ( $ state ) ; } return $ this ; }
Reset table state to new form.

@param State $state Use null to flush table schema.

@return self|$this
Reset table state to new form .