public function getDocblockParams() {
    $docblock = $this->getDocComment();

    $matches = [];
    preg_match_all('/\* @param (?P<type>\S+) \$(?P<name>\w+)/', $docblock, $matches, PREG_SET_ORDER);

    // TODO: complain if no match.

    $param_data = [];
    foreach ($matches as $match_set) {
      $param_data[$match_set['name']] = $match_set['type'];
    }

    return $param_data;
  }