TijsVerkoyen\Dropbox\Dropbox::getUserAgent PHP Метод

getUserAgent() публичный Метод

Our version will be prepended to yours. It will look like: "PHP Dropbox/ "
public getUserAgent ( ) : string
Результат string
    public function getUserAgent()
    {
        return (string) 'PHP Dropbox/' . self::VERSION . ' ' . $this->userAgent;
    }

Usage Example

Пример #1
0
 /**
  * Tests Dropbox->getUserAgent()
  */
 public function testGetUserAgent()
 {
     $this->dropbox->setUserAgent('testing/1.0.0');
     $this->assertEquals('PHP Dropbox/' . Dropbox::VERSION . ' testing/1.0.0', $this->dropbox->getUserAgent());
 }