src/File.php
public function fetchContent(array $options = [])
    {
        $client = $this->_client;

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

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

        return (string) $item->content;
    }
public function fetchContent(array $options = [])
    {
        $client = $this->_client;

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

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

        return (string) $item->content;
    }
public function fetchContent ( array $ options = [ ] ) { $ client = $ this -> _client ; $ message = sprintf ( '%s() is deprecated and will be removed in version 3;' . ' use Krizalys\Onedrive\Proxy\DriveItemProxy::content' . ' instead.' , __METHOD__ ) ; @ trigger_error ( $ message , E_USER_DEPRECATED ) ; $ drive = $ client -> getMyDrive ( ) ; $ item = $ client -> getDriveItemById ( $ drive -> id , $ this -> _id ) ; return ( string ) $ item -> content ; }
Fetches the content of the OneDrive file referenced by this File
instance.

@param array $options
Extra cURL options to apply.

@return string
The content of the OneDrive file referenced by this File
instance.

@todo Should somewhat return the content-type as well; this information
is not disclosed by OneDrive.

@deprecated Use Krizalys\Onedrive\Proxy\DriveItemProxy::content instead.
Fetches the content of the OneDrive file referenced by this File instance .