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

MappedControlledError::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 4
crap 2
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