public function array(array $array, array $rules, string $group = null, array $messages = [], $default = null): self
    {
        foreach ($rules as $key => $options) {
            $this->validateInput(
                $array[$key] ?? $default,
                new Configuration($options, $key, $group, $default),
                $messages
            );
        }

        return $this;
    }