src/Tus/Server.php
protected function buildFile(array $meta) : File
    {
        $file = new File($meta['name'], $this->cache);

        if (array_key_exists('offset', $meta)) {
            $file->setMeta($meta['offset'], $meta['size'], $meta['file_path'], $meta['location']);
        }

        return $file;
    }
protected function buildFile(array $meta) : File
    {
        $file = new File($meta['name'], $this->cache);

        if (array_key_exists('offset', $meta)) {
            $file->setMeta($meta['offset'], $meta['size'], $meta['file_path'], $meta['location']);
        }

        return $file;
    }
protected function buildFile ( array $ meta ) : File { $ file = new File ( $ meta [ 'name' ] , $ this -> cache ) ; if ( array_key_exists ( 'offset' , $ meta ) ) { $ file -> setMeta ( $ meta [ 'offset' ] , $ meta [ 'size' ] , $ meta [ 'file_path' ] , $ meta [ 'location' ] ) ; } return $ file ; }
Build file object.

@param array $meta

@return File
Build file object .