public function getParamData() {
    $data = [];

    $parameter_reflections = $this->getParameters();
    $docblock_types = $this->getDocblockParams();

    foreach ($parameter_reflections as $parameter_reflection) {
      $name = $parameter_reflection->getName();

      // Get the typehint. We try the reflection first, which gives us class
      // and interface typehints and 'array'. If that gets nothing, we scrape
      // it from the docblock so that we have something to generate docblocks
      // with.
      $type = (string) $parameter_reflection->getType();

      if (empty($type)) {
        if (isset($docblock_types[$name])) {
          $type = $docblock_types[$name];
        }
        else {
          // Account for badly-written docs where we couldn't extract a type.
          $type = '';
        }
      }

      $data[] = [
        'type' => $type,
        'name' => $name,
      ];
    }

    return $data;
  }