Passed
Push — master ( 724c6f...9da6fd )
by Rafael
06:22
created

MappedControlledError   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
dl 0
loc 68
ccs 0
cts 22
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 3 1
A __construct() 0 6 1
A getMessage() 0 3 1
A getClass() 0 3 1
A getDescription() 0 3 1
1
<?php
2
/*******************************************************************************
3
 *  This file is part of the GraphQL Bundle package.
4
 *
5
 *  (c) YnloUltratech <[email protected]>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 ******************************************************************************/
10
11
namespace Ynlo\GraphQLBundle\Error;
12
13
class MappedControlledError
14
{
15
    /**
16
     * @var string
17
     */
18
    private $class;
19
20
    /**
21
     * @var string
22
     */
23
    private $message;
24
25
    /**
26
     * @var string
27
     */
28
    private $code;
29
30
    /**
31
     * @var string
32
     */
33
    private $description;
34
35
    /**
36
     * MappedControlledError constructor.
37
     *
38
     * @param string $class
39
     * @param string $message
40
     * @param string $code
41
     * @param string $description
42
     */
43
    public function __construct(string $class, string $message, string $code, string $description)
44
    {
45
        $this->class = $class;
46
        $this->message = $message;
47
        $this->code = $code;
48
        $this->description = $description;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getClass(): string
55
    {
56
        return $this->class;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getMessage(): string
63
    {
64
        return $this->message;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getCode(): string
71
    {
72
        return $this->code;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getDescription(): string
79
    {
80
        return $this->description;
81
    }
82
}
83