module/Applications/src/Applications/Entity/Application.php 1 location
|
@@ 350-359 (lines=10) @@
|
| 347 |
|
* @param string $message |
| 348 |
|
* @return Application |
| 349 |
|
*/ |
| 350 |
|
public function changeStatus($status, $message = '[System]') |
| 351 |
|
{ |
| 352 |
|
$this->setStatus($status); |
| 353 |
|
$status = $this->getStatus(); // ensure StatusEntity |
| 354 |
|
|
| 355 |
|
$history = new History($status, $message); |
| 356 |
|
|
| 357 |
|
$this->getHistory()->add($history); |
| 358 |
|
return $this; |
| 359 |
|
} |
| 360 |
|
|
| 361 |
|
/** |
| 362 |
|
* {@inheritDoc} |
module/Jobs/src/Jobs/Entity/Job.php 1 location
|
@@ 558-567 (lines=10) @@
|
| 555 |
|
* @param string $message |
| 556 |
|
* @return Job |
| 557 |
|
*/ |
| 558 |
|
public function changeStatus($status, $message = '[System]') |
| 559 |
|
{ |
| 560 |
|
$this->setStatus($status); |
| 561 |
|
$status = $this->getStatus(); // ensure StatusEntity |
| 562 |
|
|
| 563 |
|
$history = new History($status, $message); |
| 564 |
|
|
| 565 |
|
$this->getHistory()->add($history); |
| 566 |
|
return $this; |
| 567 |
|
} |
| 568 |
|
|
| 569 |
|
/** |
| 570 |
|
* (non-PHPdoc) |