/** * @return string */ public function getHints() { $hints = $this->reflectionParameter->getDocBlockTypeStrings(); $hints[] = $this->reflectionParameter->getTypeHint(); $hints = array_filter($hints, 'strlen'); return implode('|', $hints); }