@@ -74,8 +74,6 @@ discard block |
||
| 74 | 74 | /** |
| 75 | 75 | * Class constructor |
| 76 | 76 | * |
| 77 | - * @param \Console_CommandLine $parser |
|
| 78 | - * @param \Monolog\logger $logger |
|
| 79 | 77 | */ |
| 80 | 78 | public function add($command, $parameters) { |
| 81 | 79 | |
@@ -140,7 +138,7 @@ discard block |
||
| 140 | 138 | /** |
| 141 | 139 | * Execute command |
| 142 | 140 | * |
| 143 | - * @param string $command Command to execute |
|
| 141 | + * @param string $command_name Command to execute |
|
| 144 | 142 | * @param array $options Options provided |
| 145 | 143 | * @param array $args Arguments provided |
| 146 | 144 | * @param Console_Color2 $color Injected Console_Color2 instance |
@@ -66,6 +66,9 @@ |
||
| 66 | 66 | |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $data |
|
| 71 | + */ |
|
| 69 | 72 | public function write($uid, $data) { |
| 70 | 73 | |
| 71 | 74 | $writer = $this->ipc[$uid][self::WRITER]; |
@@ -384,6 +384,9 @@ |
||
| 384 | 384 | |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | + /** |
|
| 388 | + * @param string $message |
|
| 389 | + */ |
|
| 387 | 390 | private function abortQueued($message) { |
| 388 | 391 | |
| 389 | 392 | foreach ($this->manager->queued() as $uid => $job) { |
@@ -28,6 +28,9 @@ |
||
| 28 | 28 | |
| 29 | 29 | private $task; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $status |
|
| 33 | + */ |
|
| 31 | 34 | public function __construct($status, TaskInterface $task) { |
| 32 | 35 | |
| 33 | 36 | $name = $task->getName(); |
@@ -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 | |
@@ -57,6 +57,9 @@ |
||
| 57 | 57 | |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @return EntityManager |
|
| 62 | + */ |
|
| 60 | 63 | public function getEntityManager() { |
| 61 | 64 | |
| 62 | 65 | if ( $this->entity_manager === null ) { |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | /** |
| 137 | 137 | * Get cron expression of this schedule |
| 138 | 138 | * |
| 139 | - * @return string |
|
| 139 | + * @return CronExpression |
|
| 140 | 140 | */ |
| 141 | 141 | public function getExpression() { |
| 142 | 142 | |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * set cron expression for this schedule |
| 149 | 149 | * |
| 150 | - * @param srting $expression A cron-compatible expression |
|
| 150 | + * @param CronExpression $expression A cron-compatible expression |
|
| 151 | 151 | * @return Schedule |
| 152 | 152 | */ |
| 153 | 153 | public function setExpression(CronExpression $expression) { |
@@ -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) { |
@@ -38,10 +38,8 @@ |
||
| 38 | 38 | /** |
| 39 | 39 | * Class constructor |
| 40 | 40 | * |
| 41 | - * @param string $manager_name |
|
| 42 | 41 | * @param Configuration $configuration |
| 43 | 42 | * @param LoggerInterface $logger |
| 44 | - * @param TasksTable $tasks |
|
| 45 | 43 | * @param EventsManager $events |
| 46 | 44 | * @param EntityManager $em |
| 47 | 45 | */ |