MyriadSoapException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 5
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
3
4
namespace MyriadSoap;
5
6
use Throwable;
7
8
class MyriadSoapException extends \Exception
9
{
10
    protected string $soapMethod;
11
    protected array $soapParams;
12
13 5
    public function __construct($message = '', string $soapMethod = '', array $soapParams = [], $code = 0, Throwable $previous = null)
14
    {
15 5
        $this->soapMethod = $soapMethod;
16 5
        $this->soapParams = $soapParams;
17 5
        parent::__construct($message, $code, $previous);
18
    }
19
20
    /**
21
     * @return string
22
     */
23 1
    public function getSoapMethod(): string
24
    {
25 1
        return $this->soapMethod;
26
    }
27
28
    /**
29
     * @return array
30
     */
31 1
    public function getSoapParams(): array
32
    {
33 1
        return $this->soapParams;
34
    }
35
}
36