src/Tus/Client.php
protected function partial(bool $state = true)
    {
        $this->partial = $state;

        if ( ! $this->partial) {
            return;
        }

        $key = $this->getKey();

        if (false !== strpos($key, self::PARTIAL_UPLOAD_NAME_SEPARATOR)) {
            list($key, /* $partialKey */) = explode(self::PARTIAL_UPLOAD_NAME_SEPARATOR, $key);
        }

        $this->key = $key . uniqid(self::PARTIAL_UPLOAD_NAME_SEPARATOR);
    }
protected function partial(bool $state = true)
    {
        $this->partial = $state;

        if ( ! $this->partial) {
            return;
        }

        $key = $this->getKey();

        if (false !== strpos($key, self::PARTIAL_UPLOAD_NAME_SEPARATOR)) {
            list($key, /* $partialKey */) = explode(self::PARTIAL_UPLOAD_NAME_SEPARATOR, $key);
        }

        $this->key = $key . uniqid(self::PARTIAL_UPLOAD_NAME_SEPARATOR);
    }
protected function partial ( bool $ state = true ) { $ this -> partial = $ state ; if ( ! $ this -> partial ) { return ; } $ key = $ this -> getKey ( ) ; if ( false !== strpos ( $ key , self :: PARTIAL_UPLOAD_NAME_SEPARATOR ) ) { list ( $ key , /* $partialKey */ ) = explode ( self :: PARTIAL_UPLOAD_NAME_SEPARATOR , $ key ) ; } $ this -> key = $ key . uniqid ( self :: PARTIAL_UPLOAD_NAME_SEPARATOR ) ; }
Set as partial request.

@param bool $state

@return void
Set as partial request .