module/Applications/src/Applications/Entity/Application.php 1 location
|
@@ 347-356 (lines=10) @@
|
| 344 |
|
* @param string $message |
| 345 |
|
* @return Application |
| 346 |
|
*/ |
| 347 |
|
public function changeStatus($status, $message = '[System]') |
| 348 |
|
{ |
| 349 |
|
$this->setStatus($status); |
| 350 |
|
$status = $this->getStatus(); // ensure StatusEntity |
| 351 |
|
|
| 352 |
|
$history = new History($status, $message); |
| 353 |
|
|
| 354 |
|
$this->getHistory()->add($history); |
| 355 |
|
return $this; |
| 356 |
|
} |
| 357 |
|
|
| 358 |
|
/** |
| 359 |
|
* {@inheritDoc} |
module/Jobs/src/Jobs/Entity/Job.php 1 location
|
@@ 680-689 (lines=10) @@
|
| 677 |
|
* @param string $message |
| 678 |
|
* @return Job |
| 679 |
|
*/ |
| 680 |
|
public function changeStatus($status, $message = '[System]') |
| 681 |
|
{ |
| 682 |
|
$this->setStatus($status); |
| 683 |
|
$status = $this->getStatus(); // ensure StatusEntity |
| 684 |
|
|
| 685 |
|
$history = new History($status, $message); |
| 686 |
|
|
| 687 |
|
$this->getHistory()->add($history); |
| 688 |
|
return $this; |
| 689 |
|
} |
| 690 |
|
|
| 691 |
|
/** |
| 692 |
|
* (non-PHPdoc) |