SpotifyWebAPI\SpotifyWebAPI::getReturnAssoc PHP Метод

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

Get the return type for the Request body element.
public getReturnAssoc ( ) : boolean
Результат boolean Whether an associative array or an stdClass is returned.
    public function getReturnAssoc()
    {
        return $this->request->getReturnAssoc();
    }

Usage Example

 public function testGetReturnAssoc()
 {
     $request = $this->getMock('SpotifyWebAPI\\Request');
     $request->expects($this->once())->method('getReturnAssoc')->willReturn(true);
     $api = new SpotifyWebAPI\SpotifyWebAPI($request);
     $this->assertTrue($api->getReturnAssoc(true));
 }