Re: Renaming type-hints to something else?
| From: | Levi Morrison | Date: | Wed, 17 Sep 2014 14:43:00 +0000 |
| Subject: | Re: Renaming type-hints to something else? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77289@lists.php.net to get a copy of this message | ||
> 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