ResultInterface
last analyzed

Size/Duplication

Total Lines 112
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 112
c 0
b 0
f 0

19 Methods

Rating   Name   Duplication   Size   Complexity  
getTotalRowsProcessed() 0 1 ?
getTotalRowsThrough() 0 1 ?
getAllErrors() 0 1 ?
getAllExceptions() 0 1 ?
getParticipants() 0 1 ?
getActionProcessed() 0 1 ?
getActionErrors() 0 1 ?
getActionExceptions() 0 1 ?
addActionError() 0 1 ?
addActionException() 0 1 ?
incrementActionProcessed() 0 1 ?
getStartTime() 0 1 ?
getEndTime() 0 1 ?
getActionStartTime() 0 1 ?
getActionEndTime() 0 1 ?
setStartTime() 0 1 ?
setEndTime() 0 1 ?
setActionStartTime() 0 1 ?
setActionEndTime() 0 1 ?
1
<?php
2
3
namespace Maketok\DataMigration\Workflow;
4
5
interface ResultInterface
6
{
7
    /**
8
     * Get the total number of
9
     * rows imported/exported
10
     * @return int
11
     */
12
    public function getTotalRowsProcessed();
13
14
    /**
15
     * Get the total number of
16
     * rows that went through all actions
17
     * @return int
18
     */
19
    public function getTotalRowsThrough();
20
21
    /**
22
     * Return all errors
23
     * @return array
24
     */
25
    public function getAllErrors();
26
27
    /**
28
     * @return \Exception[]
29
     */
30
    public function getAllExceptions();
31
32
    /**
33
     * @return array
34
     */
35
    public function getParticipants();
36
37
    /**
38
     * @param string $code
39
     * @return int
40
     */
41
    public function getActionProcessed($code);
42
43
    /**
44
     * @param string $code
45
     * @return array
46
     */
47
    public function getActionErrors($code);
48
49
    /**
50
     * @param string $code
51
     * @return \Exception[]
52
     */
53
    public function getActionExceptions($code);
54
55
    /**
56
     * @param string $code
57
     * @param string $message
58
     */
59
    public function addActionError($code, $message);
60
61
    /**
62
     * @param string $code
63
     * @param \Exception $ex
64
     */
65
    public function addActionException($code, \Exception $ex);
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $ex. Configured minimum length is 3.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
66
67
    /**
68
     * @param string $code
69
     * @param int $value
70
     */
71
    public function incrementActionProcessed($code, $value = 1);
72
73
    /**
74
     * @return \DateTime
75
     */
76
    public function getStartTime();
77
78
    /**
79
     * @return \DateTime
80
     */
81
    public function getEndTime();
82
83
    /**
84
     * @param string $code
85
     * @return \DateTime|null
86
     */
87
    public function getActionStartTime($code);
88
89
    /**
90
     * @param string $code
91
     * @return \DateTime|null
92
     */
93
    public function getActionEndTime($code);
94
95
    /**
96
     * @param \DateTime $time
97
     */
98
    public function setStartTime(\DateTime $time);
99
100
    /**
101
     * @param \DateTime $time
102
     */
103
    public function setEndTime(\DateTime $time);
104
105
    /**
106
     * @param string $code
107
     * @param \DateTime $time
108
     */
109
    public function setActionStartTime($code, \DateTime $time);
110
111
    /**
112
     * @param string $code
113
     * @param \DateTime $time
114
     */
115
    public function setActionEndTime($code, \DateTime $time);
116
}
117