public function addFiles($files)
    {
        if ($files instanceof FileBag) {
            $this->fileBag = $files;
            return;
        }

        if (is_array($files)) {
            $this->fileBag = new FileBag($files);
            return;
        }
        throw new BadFileDataException('The attempt at adding files to the file loader failed, due to the files not
        being a FileBag Object or an array of SplInfoObjects.');
    }
public function addFiles($files)
    {
        if ($files instanceof FileBag) {
            $this->fileBag = $files;
            return;
        }

        if (is_array($files)) {
            $this->fileBag = new FileBag($files);
            return;
        }
        throw new BadFileDataException('The attempt at adding files to the file loader failed, due to the files not
        being a FileBag Object or an array of SplInfoObjects.');
    }
public function addFiles ( $ files ) { if ( $ files instanceof FileBag ) { $ this -> fileBag = $ files ; return ; } if ( is_array ( $ files ) ) { $ this -> fileBag = new FileBag ( $ files ) ; return ; } throw new BadFileDataException ( 'The attempt at adding files to the file loader failed, due to the files not
        being a FileBag Object or an array of SplInfoObjects.' ) ; }
Add a file bag, or change an array of SplFileInfo Objects to proper objects.

@param mixed $files a FileBag or an array of SplFileInfo objects.
Add a file bag or change an array of SplFileInfo Objects to proper objects .