Skip to content

Commit 99c8111

Browse files
Implementd isCancelled method in Response class
1 parent 666f09e commit 99c8111

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Message/Response.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ public function isSuccessful(): bool
2626
return '1' === $this->getCode();
2727
}
2828

29+
/**
30+
* {@inheritdoc}
31+
*/
32+
public function isCancelled(): bool
33+
{
34+
return '-9' === $this->getCode();
35+
}
36+
2937
/**
3038
* {@inheritdoc}
3139
*/

0 commit comments

Comments
 (0)