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

        @trigger_error($message, E_USER_DEPRECATED);
        $items = $this->getRecent();

        return (object) [
            'data' => array_map(function (DriveItemProxy $item) {
                return (object) $this->buildOptions($item);
            }, $items),
        ];
    }
public function fetchRecentDocs()
    {
        $message = sprintf(
            '%s() is deprecated and will be removed in version 3;'
                . ' use Krizalys\Onedrive\Client::getRecent() instead',
            __METHOD__
        );

        @trigger_error($message, E_USER_DEPRECATED);
        $items = $this->getRecent();

        return (object) [
            'data' => array_map(function (DriveItemProxy $item) {
                return (object) $this->buildOptions($item);
            }, $items),
        ];
    }
public function fetchRecentDocs ( ) { $ message = sprintf ( '%s() is deprecated and will be removed in version 3;' . ' use Krizalys\Onedrive\Client::getRecent() instead' , __METHOD__ ) ; @ trigger_error ( $ message , E_USER_DEPRECATED ) ; $ items = $ this -> getRecent ( ) ; return ( object ) [ 'data' => array_map ( function ( DriveItemProxy $ item ) { return ( object ) $ this -> buildOptions ( $ item ) ; } , $ items ) , ] ; }
Fetches the recent documents uploaded to the current OneDrive account.

@return object
An object with the following properties:
- 'data' (array) The list of the recent documents uploaded.

@deprecated Use Krizalys\Onedrive\Client::getRecent() instead.
Fetches the recent documents uploaded to the current OneDrive account .