• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlocati / PayWay / 5213927880

pending completion
5213927880

push

github

mlocati
Initial version

1803 of 1803 new or added lines in 47 files covered. (100.0%)

1313 of 1803 relevant lines covered (72.82%)

1.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/Exception/InvalidHttpResponseCode.php
1
<?php
2

3
namespace MLocati\PayWay\Exception;
4

5
use MLocati\PayWay\Exception;
6
use MLocati\PayWay\Http\Response;
7

8
class InvalidHttpResponseCode extends Exception
9
{
10
    /**
11
     * @var \MLocati\PayWay\Http\Response
12
     */
13
    private $httpResponse;
14

15
    public function __construct(Response $httpResponse)
16
    {
17
        $this->httpResponse = $httpResponse;
1✔
18
        parent::__construct("Invalid HTTP response code: {$this->httpResponse->getCode()}");
1✔
19
    }
20

21
    /**
22
     * @return \MLocati\PayWay\Http\Response
23
     */
24
    public function getHttpResponse()
25
    {
26
        return $this->httpResponse;
×
27
    }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc