1 | <?php |
||
8 | abstract class ParaunitProcessAbstract implements ParaunitProcessInterface, RetryAwareInterface, ProcessResultInterface |
||
9 | { |
||
10 | /** @var int */ |
||
11 | protected $retryCount = 0; |
||
12 | |||
13 | /** @var bool */ |
||
14 | protected $shouldBeRetried = false; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $uniqueId; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $filename; |
||
21 | |||
22 | /** @var string[] */ |
||
23 | protected $testResults; |
||
24 | |||
25 | /** @var string */ |
||
26 | protected $abnormalTerminatedFunction; |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function __construct($commandLine, $uniqueId) |
||
43 | 51 | ||
44 | /** |
||
45 | 51 | * @return string |
|
46 | 51 | */ |
|
47 | 51 | public function getUniqueId() |
|
51 | |||
52 | 8 | /** |
|
53 | * @return int |
||
54 | 8 | */ |
|
55 | public function getRetryCount() |
||
59 | |||
60 | 20 | /** |
|
61 | */ |
||
62 | 20 | public function increaseRetryCount() |
|
66 | |||
67 | 4 | /** |
|
68 | */ |
||
69 | 4 | public function markAsToBeRetried() |
|
73 | |||
74 | 7 | /** |
|
75 | * @return bool |
||
76 | 7 | */ |
|
77 | 7 | public function isToBeRetried() |
|
81 | |||
82 | 37 | /** |
|
83 | * @return $this |
||
84 | 37 | */ |
|
85 | public function reset() |
||
89 | |||
90 | 3 | /** |
|
91 | * @return string |
||
92 | 3 | */ |
|
93 | 3 | public function getFilename() |
|
97 | |||
98 | 14 | /** |
|
99 | * @return string[] |
||
100 | 14 | */ |
|
101 | public function getTestResults() |
||
105 | |||
106 | 39 | /** |
|
107 | * @param string[] $testResults |
||
108 | 39 | */ |
|
109 | public function setTestResults(array $testResults) |
||
113 | |||
114 | 24 | public function addTestResult($testResult) |
|
118 | |||
119 | 9 | /** |
|
120 | * @return bool |
||
121 | 9 | */ |
|
122 | 9 | public function hasAbnormalTermination() |
|
126 | |||
127 | 3 | /** |
|
128 | * @return string |
||
129 | 3 | */ |
|
130 | 3 | public function getAbnormalTerminatedFunction() |
|
134 | |||
135 | 3 | /** |
|
136 | * @param string $test |
||
137 | 3 | */ |
|
138 | 3 | public function reportAbnormalTerminationInFunction($test) |
|
142 | |||
143 | /** |
||
144 | 29 | * @return bool |
|
145 | * @deprecated |
||
146 | 29 | */ |
|
147 | public function isEmpty() |
||
151 | } |
||
152 |