protected function setError($error)
    {
        if (! is_int($error) || 0 > $error || 8 < $error) {
            throw new InvalidArgumentException(
                'Invalid error status provided; must be an UPLOAD_ERR_* constant.'
            );
        }
        $this->error = $error;
    }