original_string: public function getParsedBodyParam($key, $default = null)
      {
          $postParams = $this->getParsedBody();
          $result = $default;
          if (is_array($postParams) && isset($postParams[$key])) {
              $result = $postParams[$key];
          } elseif (is_object($postParams) && property_exists($postParams, $key)) {
              $result = $postParams->$key;
          }
  
          return $result;
      }
code: public function getParsedBodyParam($key, $default = null)
      {
          $postParams = $this->getParsedBody();
          $result = $default;
          if (is_array($postParams) && isset($postParams[$key])) {
              $result = $postParams[$key];
          } elseif (is_object($postParams) && property_exists($postParams, $key)) {
              $result = $postParams->$key;
          }
  
          return $result;
      }
code_tokens: public function getParsedBodyParam ( $ key , $ default = null ) { $ postParams = $ this -> getParsedBody ( ) ; $ result = $ default ; if ( is_array ( $ postParams ) && isset ( $ postParams [ $ key ] ) ) { $ result = $ postParams [ $ key ] ; } elseif ( is_object ( $ postParams ) && property_exists ( $ postParams , $ key ) ) { $ result = $ postParams -> $ key ; } return $ result ; }
docstring: Fetch parameter value from request body.
  
  Note: This method is not part of the PSR-7 standard.
  
  @param string $key
  @param mixed  $default
  
  @return mixed
docstring_tokens: Fetch parameter value from request body .