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

        @trigger_error($message, E_USER_DEPRECATED);
        $item    = $this->getRoot();
        $options = $this->buildOptions($item);

        return new Folder($this, $item->id, $options);
    }
public function fetchRoot()
    {
        $message = sprintf(
            '%s() is deprecated and will be removed in version 3;'
                . ' use Krizalys\Onedrive\Client::getRoot() instead.',
            __METHOD__
        );

        @trigger_error($message, E_USER_DEPRECATED);
        $item    = $this->getRoot();
        $options = $this->buildOptions($item);

        return new Folder($this, $item->id, $options);
    }
public function fetchRoot ( ) { $ message = sprintf ( '%s() is deprecated and will be removed in version 3;' . ' use Krizalys\Onedrive\Client::getRoot() instead.' , __METHOD__ ) ; @ trigger_error ( $ message , E_USER_DEPRECATED ) ; $ item = $ this -> getRoot ( ) ; $ options = $ this -> buildOptions ( $ item ) ; return new Folder ( $ this , $ item -> id , $ options ) ; }
Fetches the root folder from the current OneDrive account.

@return Folder
The root folder, as a Folder instance referencing to the OneDrive
root folder.

@deprecated Use Krizalys\Onedrive\Client::getRoot() instead.
Fetches the root folder from the current OneDrive account .