getLastError() public méthode

public getLastError ( ) : array
Résultat array
 /** @test */
 public function it_should_return_false_on_error_response()
 {
     $response = new Response();
     $response->fill($this->createErrorApiResponse('some error'));
     $this->assertFalse($response->getResponseData());
     $lastError = $response->getLastError();
     $this->assertEquals('some error', $lastError['message']);
 }
 /**
  * @return array
  */
 public function getLastError()
 {
     return $this->response->getLastError();
 }
 /**
  * Proxies call to Request object and returns message from
  * the error object.
  *
  * @return string|null
  */
 public function getLastError()
 {
     $error = $this->response->getLastError();
     return isset($error['message']) ? $error['message'] : null;
 }