src/Handlers/Http/Files.php
private function createFile(array $fileInfo = []) {
    $file = new \Nuki\Models\Data\File($fileInfo['tmp_name'], $fileInfo['size']);
    
    $file->setExtension(pathinfo($fileInfo['name'], PATHINFO_EXTENSION));
    $file->setName(pathinfo($fileInfo['name'], PATHINFO_BASENAME));
    
    return $file;
  }
private function createFile(array $fileInfo = []) {
    $file = new \Nuki\Models\Data\File($fileInfo['tmp_name'], $fileInfo['size']);
    
    $file->setExtension(pathinfo($fileInfo['name'], PATHINFO_EXTENSION));
    $file->setName(pathinfo($fileInfo['name'], PATHINFO_BASENAME));
    
    return $file;
  }
private function createFile ( array $ fileInfo = [ ] ) { $ file = new \ Nuki \ Models \ Data \ File ( $ fileInfo [ 'tmp_name' ] , $ fileInfo [ 'size' ] ) ; $ file -> setExtension ( pathinfo ( $ fileInfo [ 'name' ] , PATHINFO_EXTENSION ) ) ; $ file -> setName ( pathinfo ( $ fileInfo [ 'name' ] , PATHINFO_BASENAME ) ) ; return $ file ; }
Create file object

@param array $fileInfo
@return \Nuki\Models\Data\File
Create file object