private function getType($pName, $annotations)
    {
        $type = 'string';
        foreach ($annotations as $a) {
            if (strpos($a, '$' . $pName)) {
                foreach (self::$paramTypes as $typeKey => $typeList) {
                    foreach ($typeList as $t) {
                        if (strpos(trim($a), $t) === 0) {
                            $type = $typeKey;
                        }
                    }
                }
            }
        }

        return $type;
    }