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

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

        return (object) [
            'quota'     => $quota->total,
            'available' => $quota->remaining,
        ];
    }
public function fetchQuota()
    {
        $message = sprintf(
            '%s() is deprecated and will be removed in version 3;'
                . ' use Krizalys\Onedrive\Proxy\DriveProxy::quota instead',
            __METHOD__
        );

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

        return (object) [
            'quota'     => $quota->total,
            'available' => $quota->remaining,
        ];
    }
public function fetchQuota ( ) { $ message = sprintf ( '%s() is deprecated and will be removed in version 3;' . ' use Krizalys\Onedrive\Proxy\DriveProxy::quota instead' , __METHOD__ ) ; @ trigger_error ( $ message , E_USER_DEPRECATED ) ; $ drive = $ this -> getMyDrive ( ) ; $ quota = $ drive -> quota ; return ( object ) [ 'quota' => $ quota -> total , 'available' => $ quota -> remaining , ] ; }
Fetches the quota of the current OneDrive account.

@return object
An object with the following properties:
- 'quota' (int) The total space, in bytes.
- 'available' (int) The available space, in bytes.

@deprecated Use Krizalys\Onedrive\Proxy\DriveProxy::quota instead.
Fetches the quota of the current OneDrive account .