getReturnAssoc() public method

Get a value indicating the response body type.
public getReturnAssoc ( ) : boolean
return boolean Whether the body is returned as an associative array or an stdClass.
 public function testSetReturnAssoc()
 {
     $request = new SpotifyWebAPI\Request();
     $this->assertFalse($request->getReturnAssoc());
     $request->setReturnAssoc(true);
     $this->assertTrue($request->getReturnAssoc());
     $request->setReturnAssoc(false);
     $this->assertFalse($request->getReturnAssoc());
 }