@@ -55,8 +55,7 @@ |
||
55 | 55 | |
56 | 56 | if ( $e_count == 5 ) $e_array[] = "*"; |
57 | 57 | |
58 | - } |
|
59 | - catch (Exception $e) { |
|
58 | + } catch (Exception $e) { |
|
60 | 59 | |
61 | 60 | throw $e; |
62 | 61 |
@@ -67,8 +67,7 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * Get niceness of a running process |
69 | 69 | * |
70 | - * @param int|null $pid The pid to query, or current process if null |
|
71 | - * @return int |
|
70 | + * @return string |
|
72 | 71 | */ |
73 | 72 | public function getName() { |
74 | 73 | |
@@ -79,8 +78,7 @@ discard block |
||
79 | 78 | /** |
80 | 79 | * Get niceness of a running process |
81 | 80 | * |
82 | - * @param int|null $pid The pid to query, or current process if null |
|
83 | - * @return int |
|
81 | + * @return TaskParameters |
|
84 | 82 | */ |
85 | 83 | public function getParameters() { |
86 | 84 | |
@@ -91,8 +89,8 @@ discard block |
||
91 | 89 | /** |
92 | 90 | * Get niceness of a running process |
93 | 91 | * |
94 | - * @param int|null $pid The pid to query, or current process if null |
|
95 | - * @return int |
|
92 | + * @param string $name |
|
93 | + * @return AbstractTask |
|
96 | 94 | */ |
97 | 95 | public function setName($name) { |
98 | 96 | |
@@ -105,8 +103,7 @@ discard block |
||
105 | 103 | /** |
106 | 104 | * Get niceness of a running process |
107 | 105 | * |
108 | - * @param int|null $pid The pid to query, or current process if null |
|
109 | - * @return int |
|
106 | + * @return AbstractTask |
|
110 | 107 | */ |
111 | 108 | public function setParameters(TaskParameters $parameters) { |
112 | 109 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | |
22 | -class Result extends Model{ |
|
22 | +class Result extends Model { |
|
23 | 23 | |
24 | 24 | protected $mode = self::READONLY; |
25 | 25 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | |
22 | -class Result extends Model{ |
|
22 | +class Result extends Model { |
|
23 | 23 | |
24 | 24 | protected $mode = self::READONLY; |
25 | 25 |
@@ -111,9 +111,9 @@ |
||
111 | 111 | |
112 | 112 | $t = microtime(true); |
113 | 113 | |
114 | - $micro = sprintf("%06d",($t - floor($t)) * 1000000); |
|
114 | + $micro = sprintf("%06d", ($t - floor($t)) * 1000000); |
|
115 | 115 | |
116 | - return new DateTime( date('Y-m-d H:i:s.'.$micro, $t) ); |
|
116 | + return new DateTime(date('Y-m-d H:i:s.'.$micro, $t)); |
|
117 | 117 | |
118 | 118 | } |
119 | 119 |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | /** |
186 | 186 | * Get worklog item's parent |
187 | 187 | * |
188 | - * @return strin |
|
188 | + * @return integer |
|
189 | 189 | */ |
190 | 190 | public function getParentUid() { |
191 | 191 | |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * Set associated task |
223 | 223 | * |
224 | 224 | * @param string $task |
225 | - * @return Schedule |
|
225 | + * @return Worklog |
|
226 | 226 | */ |
227 | 227 | public function setTask($task) { |
228 | 228 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | * Set queue item's parameters |
248 | 248 | * |
249 | 249 | * @param TaskParameters $parameters |
250 | - * @return Schedule |
|
250 | + * @return Worklog |
|
251 | 251 | */ |
252 | 252 | public function setParameters(TaskParameters $parameters) { |
253 | 253 | |
@@ -271,7 +271,6 @@ discard block |
||
271 | 271 | /** |
272 | 272 | * Set current job status |
273 | 273 | * |
274 | - * @param string $name |
|
275 | 274 | * @return Worklog |
276 | 275 | */ |
277 | 276 | public function setStatus($status) { |
@@ -140,6 +140,9 @@ |
||
140 | 140 | |
141 | 141 | } |
142 | 142 | |
143 | + /** |
|
144 | + * @param string $name |
|
145 | + */ |
|
143 | 146 | public function getInstance($name, TaskParameters $parameters = null) { |
144 | 147 | |
145 | 148 | $task_class = $this->getClass(); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * Set queue item's id |
52 | 52 | * |
53 | 53 | * @param string $id |
54 | - * @return Schedule |
|
54 | + * @return BaseEntityTrait |
|
55 | 55 | */ |
56 | 56 | public function setId($id) { |
57 | 57 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * Set queue item's name |
77 | 77 | * |
78 | 78 | * @param string $name |
79 | - * @return Schedule |
|
79 | + * @return BaseEntityTrait |
|
80 | 80 | */ |
81 | 81 | public function setName($name) { |
82 | 82 |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * Set queue item's id |
66 | 66 | * |
67 | 67 | * @param string $id |
68 | - * @return Schedule |
|
68 | + * @return BaseScheduleEntityTrait |
|
69 | 69 | */ |
70 | 70 | public function setId($id) { |
71 | 71 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * Set queue item's name |
91 | 91 | * |
92 | 92 | * @param string $name |
93 | - * @return Schedule |
|
93 | + * @return BaseScheduleEntityTrait |
|
94 | 94 | */ |
95 | 95 | public function setName($name) { |
96 | 96 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * Set associated task |
116 | 116 | * |
117 | 117 | * @param string $task |
118 | - * @return Schedule |
|
118 | + * @return BaseScheduleEntityTrait |
|
119 | 119 | */ |
120 | 120 | public function setTask($task) { |
121 | 121 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * Set queue item's parameters |
141 | 141 | * |
142 | 142 | * @param TaskParameters $parameters |
143 | - * @return Schedule |
|
143 | + * @return BaseScheduleEntityTrait |
|
144 | 144 | */ |
145 | 145 | public function setParameters(TaskParameters $parameters) { |
146 | 146 |
@@ -39,8 +39,7 @@ |
||
39 | 39 | /** |
40 | 40 | * Set EntityManager |
41 | 41 | * |
42 | - * @param string $id |
|
43 | - * @return Schedule |
|
42 | + * @return EntityManagerTrait |
|
44 | 43 | */ |
45 | 44 | public function setEntityManager(EntityManager $em) { |
46 | 45 |