|
@@ 575-588 (lines=14) @@
|
| 572 |
|
* |
| 573 |
|
* @since 1.0 |
| 574 |
|
*/ |
| 575 |
|
public function setUnitStartTime($year, $month, $day, $hour, $minute, $second) |
| 576 |
|
{ |
| 577 |
|
self::$logger->debug('>>setUnitStartTime(year=['.$year.'], month=['.$month.'], day=['.$day.'], hour=['.$hour.'], minute=['.$minute.'], |
| 578 |
|
second=['.$second.'])'); |
| 579 |
|
|
| 580 |
|
$config = ConfigProvider::getInstance(); |
| 581 |
|
$sessionProvider = $config->get('session.provider.name'); |
| 582 |
|
$session = SessionProviderFactory::getInstance($sessionProvider); |
| 583 |
|
|
| 584 |
|
$this->unitStartTime->setTimestampValue($year, $month, $day, $hour, $minute, $second); |
| 585 |
|
$session->set('unitStartTime', $this->unitStartTime->getValue()); |
| 586 |
|
|
| 587 |
|
self::$logger->debug('<<setUnitStartTime'); |
| 588 |
|
} |
| 589 |
|
|
| 590 |
|
/** |
| 591 |
|
* Getter for the unit end time. |
|
@@ 617-630 (lines=14) @@
|
| 614 |
|
* |
| 615 |
|
* @since 1.0 |
| 616 |
|
*/ |
| 617 |
|
public function setUnitEndTime($year, $month, $day, $hour, $minute, $second) |
| 618 |
|
{ |
| 619 |
|
self::$logger->debug('>>setUnitEndTime(year=['.$year.'], month=['.$month.'], day=['.$day.'], hour=['.$hour.'], minute=['.$minute.'], |
| 620 |
|
second=['.$second.'])'); |
| 621 |
|
|
| 622 |
|
$config = ConfigProvider::getInstance(); |
| 623 |
|
$sessionProvider = $config->get('session.provider.name'); |
| 624 |
|
$session = SessionProviderFactory::getInstance($sessionProvider); |
| 625 |
|
|
| 626 |
|
$this->unitEndTime->setTimestampValue($year, $month, $day, $hour, $minute, $second); |
| 627 |
|
$session->set('unitEndTime', $this->unitEndTime->getValue()); |
| 628 |
|
|
| 629 |
|
self::$logger->debug('<<setUnitEndTime'); |
| 630 |
|
} |
| 631 |
|
|
| 632 |
|
/** |
| 633 |
|
* Getter for the unit of work MAX duration. |