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