rfc:reflectionparameter.typehint
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:reflectionparameter.typehint [2014/05/30 16:25] – The __ in toString causes issues with wiki layout. levim | rfc:reflectionparameter.typehint [2014/05/30 16:34] – Improved Introduction. levim | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | This RFC proposes a class to represent type information; | + | This RFC proposes a new class '' |
- | Current | + | The class '' |
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
Line 18: | Line 18: | ||
===== New Reflection class type: ReflectionTypeAnnotation ===== | ===== New Reflection class type: ReflectionTypeAnnotation ===== | ||
- | | + | < |
+ | class ReflectionTypeAnnotation implements Reflector { | ||
public function __toString() { /* returns type annotation string (e.g. " | public function __toString() { /* returns type annotation string (e.g. " | ||
public function isArray() { /* true if the typehint is " | public function isArray() { /* true if the typehint is " | ||
public function isCallable() { /* true if the typehint is " | public function isCallable() { /* true if the typehint is " | ||
public function isNullable() { /* true if NULL is an acceptable value */ } | public function isNullable() { /* true if NULL is an acceptable value */ } | ||
- | | + | } |
+ | </ | ||
===== Implementation and new unit test ===== | ===== Implementation and new unit test ===== | ||
Original proposal: https:// | Original proposal: https:// | ||
+ | |||
Current proposal: https:// | Current proposal: https:// |
rfc/reflectionparameter.typehint.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1