Passed
Branch development (0519a2)
by Theodoros
02:02
created

FailedResult   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 121
Duplicated Lines 0 %

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setItemType() 0 3 1
A getFirstId() 0 3 1
A setFirstId() 0 3 1
A getLastId() 0 3 1
A setReason() 0 3 1
A setLastId() 0 3 1
A getReason() 0 3 1
A getItemType() 0 3 1
A getFailedCount() 0 3 1
A setFailedCount() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Econda\Business\Model;
9
10
/**
11
 * @deprecated Must be refactored into a Transfer object instead.
12
 */
13
class FailedResult implements FailedResultInterface
0 ignored issues
show
Deprecated Code introduced by
The interface SprykerEco\Zed\Econda\Bu...l\FailedResultInterface has been deprecated: Must be refactored into a Transfer object instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

13
class FailedResult implements /** @scrutinizer ignore-deprecated */ FailedResultInterface

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
14
{
15
16
    /**
17
     * @var string
18
     */
19
    protected $reason = '';
20
21
    /**
22
     * @var int
23
     */
24
    protected $firstId;
25
26
    /**
27
     * @var int
28
     */
29
    protected $lastId;
30
31
    /**
32
     * @var string
33
     */
34
    protected $itemType;
35
36
    /**
37
     * @var string
38
     */
39
    protected $processor;
40
41
    /**
42
     * @var int
43
     */
44
    protected $failedCount = 0;
45
46
    /**
47
     * @return int
48
     */
49
    public function getFirstId()
50
    {
51
        return $this->firstId;
52
    }
53
54
    /**
55
     * @param int $itemId
56
     *
57
     * @return void
58
     */
59
    public function setFirstId($itemId)
60
    {
61
        $this->firstId = $itemId;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getItemType()
68
    {
69
        return $this->itemType;
70
    }
71
72
    /**
73
     * @param string $itemType
74
     *
75
     * @return void
76
     */
77
    public function setItemType($itemType)
78
    {
79
        $this->itemType = $itemType;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function getReason()
86
    {
87
        return $this->reason;
88
    }
89
90
    /**
91
     * @param string $reason
92
     *
93
     * @return void
94
     */
95
    public function setReason($reason)
96
    {
97
        $this->reason = $reason;
98
    }
99
100
    /**
101
     * @return int
102
     */
103
    public function getLastId()
104
    {
105
        return $this->lastId;
106
    }
107
108
    /**
109
     * @param int $lastId
110
     *
111
     * @return void
112
     */
113
    public function setLastId($lastId)
114
    {
115
        $this->lastId = $lastId;
116
    }
117
118
    /**
119
     * @param int $count
120
     *
121
     * @return void
122
     */
123
    public function setFailedCount($count)
124
    {
125
        $this->failedCount = $count;
126
    }
127
128
    /**
129
     * @return int
130
     */
131
    public function getFailedCount()
132
    {
133
        return $this->failedCount;
134
    }
135
136
}
137