1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\Communication\HttpStatusParser;
6
7 use Buzz\Message\Response;
8
9 /**
10 * This class is checking the HTTP status code of the response from PayU.
11 * If status code will be different then expected it will throw {@link HttpStatusParserException}
12 *
13 * Interface HttpStatusParserInterface
14 * @package Team3\PayU\Communication\HttpStatusParser
15 */
16 interface HttpStatusParserInterface
17 {
18 /**
19 * @param Response $curlResponse
20 *
21 * @throws HttpStatusParserException
22 */
23 public function parse(Response $curlResponse);
24 }
25