original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Returns the binding type.
  
  @return BindingType
docstring_tokens: Returns the binding type .