src/DriveItem.php
public function move($destinationId = null)
    {
        $client = $this->_client;

        $message = sprintf(
            '%s() is deprecated and will be removed in version 3;'
                . ' use Krizalys\Onedrive\Proxy\DriveItemProxy::move()'
                . ' instead.',
            __METHOD__
        );

        @trigger_error($message, E_USER_DEPRECATED);
        $drive           = $client->getMyDrive();
        $item            = $client->getDriveItemById($drive->id, $this->_id);
        $destinationItem = $client->getDriveItemById($drive->id, $destinationId);

        return $item->move($destinationItem);
    }
public function move($destinationId = null)
    {
        $client = $this->_client;

        $message = sprintf(
            '%s() is deprecated and will be removed in version 3;'
                . ' use Krizalys\Onedrive\Proxy\DriveItemProxy::move()'
                . ' instead.',
            __METHOD__
        );

        @trigger_error($message, E_USER_DEPRECATED);
        $drive           = $client->getMyDrive();
        $item            = $client->getDriveItemById($drive->id, $this->_id);
        $destinationItem = $client->getDriveItemById($drive->id, $destinationId);

        return $item->move($destinationItem);
    }
public function move ( $ destinationId = null ) { $ client = $ this -> _client ; $ message = sprintf ( '%s() is deprecated and will be removed in version 3;' . ' use Krizalys\Onedrive\Proxy\DriveItemProxy::move()' . ' instead.' , __METHOD__ ) ; @ trigger_error ( $ message , E_USER_DEPRECATED ) ; $ drive = $ client -> getMyDrive ( ) ; $ item = $ client -> getDriveItemById ( $ drive -> id , $ this -> _id ) ; $ destinationItem = $ client -> getDriveItemById ( $ drive -> id , $ destinationId ) ; return $ item -> move ( $ destinationItem ) ; }
Moves the OneDrive drive item referenced by this DriveItem instance into
another OneDrive folder.

@param null|string $destinationId
The unique ID of the OneDrive folder into which to move the
OneDrive drive item referenced by this DriveItem instance, or null
to move it to the OneDrive root folder. Default: null.

@deprecated Use Krizalys\Onedrive\Proxy\DriveItemProxy::move() instead.
Moves the OneDrive drive item referenced by this DriveItem instance into another OneDrive folder .