private function setError(int $error): void
    {
        if (! \in_array($error, self::ERRORS, true)) {
            throw new InvalidArgumentException('Invalid error status for UploadedFile.');
        }

        $this->error = $error;
    }
private function setError(int $error): void
    {
        if (! \in_array($error, self::ERRORS, true)) {
            throw new InvalidArgumentException('Invalid error status for UploadedFile.');
        }

        $this->error = $error;
    }
private function setError ( int $ error ) : void { if ( ! \ in_array ( $ error , self :: ERRORS , true ) ) { throw new InvalidArgumentException ( 'Invalid error status for UploadedFile.' ) ; } $ this -> error = $ error ; }
Check if error is a int or a array, then set it.

@param int $error

@throws \Viserio\Component\Contract\Http\Exception\InvalidArgumentException

@return void
Check if error is a int or a array then set it .