public function isPausable(TestSession $session = null)
    {
        if ($this->couldBePaused($session)) {

            /** @var AssessmentItemRef $itemRef */
            $itemRef = $session->getCurrentAssessmentItemRef();

            return $this->isItemPausable($itemRef);
        }
        return false;
    }
public function isPausable(TestSession $session = null)
    {
        if ($this->couldBePaused($session)) {

            /** @var AssessmentItemRef $itemRef */
            $itemRef = $session->getCurrentAssessmentItemRef();

            return $this->isItemPausable($itemRef);
        }
        return false;
    }
public function isPausable ( TestSession $ session = null ) { if ( $ this -> couldBePaused ( $ session ) ) { /** @var AssessmentItemRef $itemRef */ $ itemRef = $ session -> getCurrentAssessmentItemRef ( ) ; return $ this -> isItemPausable ( $ itemRef ) ; } return false ; }
Checked that section can be paused
@param TestSession $session
@return bool
Checked that section can be paused