MyriadSoapException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 26
ccs 8
cts 8
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSoapParams() 0 3 1
A getSoapMethod() 0 3 1
A __construct() 0 5 1
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