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

mlocati / PayWay / 5212705470

pending completion
5212705470

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

83.33
/src/Exception/InvalidXml.php
1
<?php
2

3
namespace MLocati\PayWay\Exception;
4

5
use MLocati\PayWay\Exception;
6

7
class InvalidXml extends Exception
8
{
9
    /**
10
     * @var string
11
     */
12
    private $raw;
13

14
    /**
15
     * @param string $raw
16
     * @param string $details
17
     */
18
    public function __construct($raw, $details = '')
19
    {
20
        $this->raw = (string) $raw;
4✔
21
        $message = trim((string) $details);
4✔
22
        if ($message === '') {
4✔
23
            $message = 'The XML is not valid';
2✔
24
        }
25
        parent::__construct($message);
4✔
26
    }
27

28
    /**
29
     * @return string
30
     */
31
    public function getRaw()
32
    {
33
        return $this->raw;
×
34
    }
35

36
}
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