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
|
@@ 650-659 (lines=10) @@
|
| 647 |
|
* @param string $message |
| 648 |
|
* @return Job |
| 649 |
|
*/ |
| 650 |
|
public function changeStatus($status, $message = '[System]') |
| 651 |
|
{ |
| 652 |
|
$this->setStatus($status); |
| 653 |
|
$status = $this->getStatus(); // ensure StatusEntity |
| 654 |
|
|
| 655 |
|
$history = new History($status, $message); |
| 656 |
|
|
| 657 |
|
$this->getHistory()->add($history); |
| 658 |
|
return $this; |
| 659 |
|
} |
| 660 |
|
|
| 661 |
|
/** |
| 662 |
|
* (non-PHPdoc) |