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
|
@@ 696-705 (lines=10) @@
|
693 |
|
* @param string $message |
694 |
|
* @return Job |
695 |
|
*/ |
696 |
|
public function changeStatus($status, $message = '[System]') |
697 |
|
{ |
698 |
|
$this->setStatus($status); |
699 |
|
$status = $this->getStatus(); // ensure StatusEntity |
700 |
|
|
701 |
|
$history = new History($status, $message); |
702 |
|
|
703 |
|
$this->getHistory()->add($history); |
704 |
|
return $this; |
705 |
|
} |
706 |
|
|
707 |
|
/** |
708 |
|
* (non-PHPdoc) |