24 private $caseEntity =
false;
29 private $caseManagement;
41 $this->caseManagement = $caseManagement;
43 parent::__construct($context,
$data);
51 private function getCaseEntity()
53 if ($this->caseEntity ===
false) {
54 $this->caseEntity = $this->caseManagement->getByOrderId(
59 return $this->caseEntity;
69 private function getCaseProperty($defaultValue, callable $callback)
82 return $this->getCaseEntity() ===
null;
93 return $this->getCaseProperty(
'',
function () {
94 $guaranteeStatusMap = [
103 $status = isset($guaranteeStatusMap[$this->getCaseEntity()->getGuaranteeDisposition()]) ?
104 $guaranteeStatusMap[$this->getCaseEntity()->getGuaranteeDisposition()] :
116 private function getOrderId()
118 return (
int) $this->
getRequest()->getParam(
'order_id');
call_user_func($callable, $param)
const GUARANTEE_UNREQUESTED
getCaseGuaranteeDisposition()
const GUARANTEE_IN_REVIEW
__construct(Context $context, CaseManagement $caseManagement, array $data=[])