src/Client.php
public function fetchProperties($driveItemId = null)
    {
        $message = sprintf(
            '%s() is deprecated and will be removed in version 3;'
                . ' use Krizalys\Onedrive\Client::getDriveItemById() instead',
            __METHOD__
        );

        @trigger_error($message, E_USER_DEPRECATED);
        $drive = $this->getMyDrive();

        $item = $driveItemId !== null ?
            $this->getDriveItemById($drive->id, $driveItemId)
            : $drive->getRoot();

        $options = $this->buildOptions(
            $item,
            [
                'id'        => $item->id,
                'parent_id' => $driveItemId,
            ]
        );

        return (object) $options;
    }
public function fetchProperties($driveItemId = null)
    {
        $message = sprintf(
            '%s() is deprecated and will be removed in version 3;'
                . ' use Krizalys\Onedrive\Client::getDriveItemById() instead',
            __METHOD__
        );

        @trigger_error($message, E_USER_DEPRECATED);
        $drive = $this->getMyDrive();

        $item = $driveItemId !== null ?
            $this->getDriveItemById($drive->id, $driveItemId)
            : $drive->getRoot();

        $options = $this->buildOptions(
            $item,
            [
                'id'        => $item->id,
                'parent_id' => $driveItemId,
            ]
        );

        return (object) $options;
    }
public function fetchProperties ( $ driveItemId = null ) { $ message = sprintf ( '%s() is deprecated and will be removed in version 3;' . ' use Krizalys\Onedrive\Client::getDriveItemById() instead' , __METHOD__ ) ; @ trigger_error ( $ message , E_USER_DEPRECATED ) ; $ drive = $ this -> getMyDrive ( ) ; $ item = $ driveItemId !== null ? $ this -> getDriveItemById ( $ drive -> id , $ driveItemId ) : $ drive -> getRoot ( ) ; $ options = $ this -> buildOptions ( $ item , [ 'id' => $ item -> id , 'parent_id' => $ driveItemId , ] ) ; return ( object ) $ options ; }
Fetches the properties of a drive item in the current OneDrive account.

@param null|string $driveItemId
The drive item ID, or null to fetch the OneDrive root folder.
Default: null.

@return object
The properties of the drive item fetched.

@deprecated Use Krizalys\Onedrive\Client::getDriveItemById() instead.
Fetches the properties of a drive item in the current OneDrive account .