public function getType() { if (null === $this->getTypeHint()) { return null; } return ReflectionType::createFromType($this->getTypeHint(), $this->allowsNull()); }