> This also manifests itself to users because of reflection as well.

I think maybe writing out a few possible class/method names might be helpful:

Using Hint:
------------------------------
class ReflectionTypeHint

Methods:
  ReflectionFunction::hasReturnTypeHint
  ReflectionFunction::getReturnTypeHint
  ReflectionParameter::hasTypeHint
  ReflectionParameter::getTypeHint


Using Decl:
------------------------------
class ReflectionTypeDecl

Methods:
  ReflectionFunction::hasReturnTypeDecl
  ReflectionFunction::getReturnTypeDecl
  ReflectionParameter::hasTypeDecl
  ReflectionParameter::getTypeDecl


Using Declaration:
------------------------------
class ReflectionTypeDeclaration

Methods:
  ReflectionFunction::hasReturnTypeDeclaration
  ReflectionFunction::getReturnTypeDeclaration
  ReflectionParameter::hasTypeDeclaration
  ReflectionParameter::getTypeDeclaration


Dropping the suffix:
------------------------------
class ReflectionType

Methods:
  ReflectionFunction::hasReturnType
  ReflectionFunction::getReturnType
  ReflectionParameter::hasType
  ReflectionParameter::getType

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to