original_string: private function getConfig($key = null, $args = null)
      {
          if($key!=null) {
  
              $value = null;
              if(isset($this->_config[$key])) {
                  $value = $this->_config[$key];
  
              } elseif(isset($this->_updateConfig[$key])) {
                      $value = $this->_updateConfig[$key];
  
              }
  
              if (isset($args["returnAsArray"]) && $args["returnAsArray"]){
  
                  /** Return the response as an array */
                  if(is_array($value)){
                      return $value;
                  }
                  
              }elseif(is_array($value)) {
                  /** @var CheckoutApi_Lib_RespondObj $to_return */
                  $to_return = CheckoutApi_Lib_Factory::getInstance('CheckoutApi_Lib_RespondObj');
                  $to_return->setConfig( $value);
                  return $to_return;
              }
  
              return $value;
          }
  
          if($key == null) {
              return $this->_config;
          }
          return null;
      }
code: private function getConfig($key = null, $args = null)
      {
          if($key!=null) {
  
              $value = null;
              if(isset($this->_config[$key])) {
                  $value = $this->_config[$key];
  
              } elseif(isset($this->_updateConfig[$key])) {
                      $value = $this->_updateConfig[$key];
  
              }
  
              if (isset($args["returnAsArray"]) && $args["returnAsArray"]){
  
                  /** Return the response as an array */
                  if(is_array($value)){
                      return $value;
                  }
                  
              }elseif(is_array($value)) {
                  /** @var CheckoutApi_Lib_RespondObj $to_return */
                  $to_return = CheckoutApi_Lib_Factory::getInstance('CheckoutApi_Lib_RespondObj');
                  $to_return->setConfig( $value);
                  return $to_return;
              }
  
              return $value;
          }
  
          if($key == null) {
              return $this->_config;
          }
          return null;
      }
code_tokens: private function getConfig ( $ key = null , $ args = null ) { if ( $ key != null ) { $ value = null ; if ( isset ( $ this -> _config [ $ key ] ) ) { $ value = $ this -> _config [ $ key ] ; } elseif ( isset ( $ this -> _updateConfig [ $ key ] ) ) { $ value = $ this -> _updateConfig [ $ key ] ; } if ( isset ( $ args [ "returnAsArray" ] ) && $ args [ "returnAsArray" ] ) { /** Return the response as an array */ if ( is_array ( $ value ) ) { return $ value ; } } elseif ( is_array ( $ value ) ) { /** @var CheckoutApi_Lib_RespondObj $to_return */ $ to_return = CheckoutApi_Lib_Factory :: getInstance ( 'CheckoutApi_Lib_RespondObj' ) ; $ to_return -> setConfig ( $ value ) ; return $ to_return ; } return $ value ; } if ( $ key == null ) { return $ this -> _config ; } return null ; }
docstring: This method return value from the attribute config
  @param null $key attribute you want to retrive
  @return array|CheckoutApi_Lib_RespondObj|null
  @throws Exception
docstring_tokens: This method return value from the attribute config