seregazhuk\PinterestBot\Api\Response::getLastError PHP Method

getLastError() public method

public getLastError ( ) : array
return array
    public function getLastError()
    {
        return $this->lastError;
    }

Usage Example

 /** @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']);
 }
All Usage Examples Of seregazhuk\PinterestBot\Api\Response::getLastError