public function reset()
    {
        $this->messages = [];

        foreach (self::$when as $when) {
            $this->messages[$when] = [];
        }

        return $this;
    }
public function reset()
    {
        $this->messages = [];

        foreach (self::$when as $when) {
            $this->messages[$when] = [];
        }

        return $this;
    }
public function reset ( ) { $ this -> messages = [ ] ; foreach ( self :: $ when as $ when ) { $ this -> messages [ $ when ] = [ ] ; } return $ this ; }
Reset messages and build array structure.

@return $this
Reset messages and build array structure .