public function setFails(array $fails = null): void
    {
        if (!empty($fails)) {
            foreach ($fails as $fieldName => $fail) {
                $this->fails[$fieldName] = $fail;
            }
        }
    }