public function getBindingType()
    {
        $bindingType = $this->session->get(SessionParameter::BINDING_TYPE);

        if (!is_string($bindingType)) {
            return BindingType::cast(BindingType::CUSTOM);
        }

        try {
            return BindingType::cast($bindingType);
        } catch (InvalidEnumerationValueException $exception) {
            return BindingType::cast(BindingType::CUSTOM);
        }
    }
public function getBindingType()
    {
        $bindingType = $this->session->get(SessionParameter::BINDING_TYPE);

        if (!is_string($bindingType)) {
            return BindingType::cast(BindingType::CUSTOM);
        }

        try {
            return BindingType::cast($bindingType);
        } catch (InvalidEnumerationValueException $exception) {
            return BindingType::cast(BindingType::CUSTOM);
        }
    }
public function getBindingType ( ) { $ bindingType = $ this -> session -> get ( SessionParameter :: BINDING_TYPE ) ; if ( ! is_string ( $ bindingType ) ) { return BindingType :: cast ( BindingType :: CUSTOM ) ; } try { return BindingType :: cast ( $ bindingType ) ; } catch ( InvalidEnumerationValueException $ exception ) { return BindingType :: cast ( BindingType :: CUSTOM ) ; } }
Returns the binding type.

@return BindingType
Returns the binding type .