src/Folder.php
public function fetchDriveItems()
    {
        $client = $this->_client;

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

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

        return array_map(function (DriveItemProxy $item) use ($client) {
            $options = $client->buildOptions($item, ['parent_id' => $this->_id]);

            return $client->isFolder($item) ?
                new self($client, $item->id, $options)
                : new File($client, $item->id, $options);
        }, $item->children);
    }
public function fetchDriveItems()
    {
        $client = $this->_client;

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

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

        return array_map(function (DriveItemProxy $item) use ($client) {
            $options = $client->buildOptions($item, ['parent_id' => $this->_id]);

            return $client->isFolder($item) ?
                new self($client, $item->id, $options)
                : new File($client, $item->id, $options);
        }, $item->children);
    }
public function fetchDriveItems ( ) { $ client = $ this -> _client ; $ message = sprintf ( '%s() is deprecated and will be removed in version 3;' . ' use Krizalys\Onedrive\Proxy\DriveItemProxy::children' . ' instead' , __METHOD__ ) ; @ trigger_error ( $ message , E_USER_DEPRECATED ) ; $ drive = $ client -> getMyDrive ( ) ; $ item = $ client -> getDriveItemById ( $ drive -> id , $ this -> _id ) ; return array_map ( function ( DriveItemProxy $ item ) use ( $ client ) { $ options = $ client -> buildOptions ( $ item , [ 'parent_id' => $ this -> _id ] ) ; return $ client -> isFolder ( $ item ) ? new self ( $ client , $ item -> id , $ options ) : new File ( $ client , $ item -> id , $ options ) ; } , $ item -> children ) ; }
Gets the drive items in the OneDrive folder referenced by this Folder
instance.

@return array
The drive items in the OneDrive folder referenced by this Folder
instance, as DriveItem instances.

@deprecated Use Krizalys\Onedrive\Proxy\DriveItemProxy::children instead.
Gets the drive items in the OneDrive folder referenced by this Folder instance .