private function validateUploadedFiles(array $uploadedFiles)
    {
        foreach ($uploadedFiles as $file) {
            if (is_array($file)) {
                $this->validateUploadedFiles($file);
            } elseif (!$file instanceof UploadedFileInterface) {
                throw new InvalidArgumentException('Invalid entry in uploaded files structure');
            }
        }
    }
private function validateUploadedFiles(array $uploadedFiles)
    {
        foreach ($uploadedFiles as $file) {
            if (is_array($file)) {
                $this->validateUploadedFiles($file);
            } elseif (!$file instanceof UploadedFileInterface) {
                throw new InvalidArgumentException('Invalid entry in uploaded files structure');
            }
        }
    }
private function validateUploadedFiles ( array $ uploadedFiles ) { foreach ( $ uploadedFiles as $ file ) { if ( is_array ( $ file ) ) { $ this -> validateUploadedFiles ( $ file ) ; } elseif ( ! $ file instanceof UploadedFileInterface ) { throw new InvalidArgumentException ( 'Invalid entry in uploaded files structure' ) ; } } }
Validate the structure in an uploaded files array.

@param array $uploadedFiles

@throws InvalidArgumentException if any entry is not an UploadedFileInterface instance.
Validate the structure in an uploaded files array .