code: public function getParameterType($index)
      {
          if (!isset($this->parameterTypes[$index])) {
              throw new \InvalidArgumentException('No type defined for parameter #' . $index);
          }
  
          return $this->parameterTypes[$index];
      }
docs: {@inheritdoc}