JobError   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 83
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 83
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getDetail() 0 3 1
A getFileName() 0 3 1
A __construct() 0 7 1
A getExtraDetail() 0 3 1
A getMessage() 0 3 1
A getTaskName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
/*
5
 * The MIT License
6
 *
7
 * Copyright 2016 BCL Technologies.
8
 *
9
 * Permission is hereby granted, free of charge, to any person obtaining a copy
10
 * of this software and associated documentation files (the "Software"), to deal
11
 * in the Software without restriction, including without limitation the rights
12
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
 * copies of the Software, and to permit persons to whom the Software is
14
 * furnished to do so, subject to the following conditions:
15
 *
16
 * The above copyright notice and this permission notice shall be included in
17
 * all copies or substantial portions of the Software.
18
 *
19
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
 * THE SOFTWARE.
26
 */
27
28
namespace Bcl\EasyPdfCloud;
29
30
class JobError
31
{
32
    /**
33
     * @var string
34
     */
35
    private $taskName;
36
37
    /**
38
     * @var string
39
     */
40
    private $fileName;
41
42
    /**
43
     * @var string
44
     */
45
    private $message;
46
47
    /**
48
     * @var string
49
     */
50
    private $detail;
51
52
    /**
53
     * @var string
54
     */
55
    private $extraDetail;
56
57
    /**
58
     * JobError constructor.
59
     *
60
     * @param string $taskName
61
     * @param string $fileName
62
     * @param string $message
63
     * @param string $detail
64
     * @param string $extraDetail
65
     */
66
    public function __construct(string $taskName, string $fileName, string $message, string $detail, string $extraDetail)
67
    {
68
        $this->taskName = $taskName;
69
        $this->fileName = $fileName;
70
        $this->message = $message;
71
        $this->detail = $detail;
72
        $this->extraDetail = $extraDetail;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getTaskName(): string
79
    {
80
        return $this->taskName;
81
    }
82
83
    /**
84
     * @return string
85
     */
86
    public function getFileName(): string
87
    {
88
        return $this->fileName;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function getMessage(): string
95
    {
96
        return $this->message;
97
    }
98
99
    /**
100
     * @return string
101
     */
102
    public function getDetail(): string
103
    {
104
        return $this->detail;
105
    }
106
107
    /**
108
     * @return string
109
     */
110
    public function getExtraDetail(): string
111
    {
112
        return $this->extraDetail;
113
    }
114
}
115