From 0b61e2b7654fd74fae8eea9e3583c78c576eb387 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Fri, 23 May 2008 14:28:55 +0000 Subject: [PATCH] Added getPosition() to ReflectionParameter class definition. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@260160 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/reflection.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/language/oop5/reflection.xml b/language/oop5/reflection.xml index 373243c23a..f7ba69fe74 100644 --- a/language/oop5/reflection.xml +++ b/language/oop5/reflection.xml @@ -1,5 +1,5 @@ - + Reflection @@ -298,6 +298,7 @@ class ReflectionParameter implements Reflector public bool isOptional() public bool isDefaultValueAvailable() public mixed getDefaultValue() + public int getPosition() } ?> ]]> @@ -343,7 +344,7 @@ foreach ($reflect->getParameters() as $i => $param) { " Passed to by reference: %s\n". " Is optional?: %s\n". "}\n", - $i, + $i, // $param->getPosition() can be used from PHP 5.2.3 $param->getName(), var_export($param->getClass(), 1), var_export($param->allowsNull(), 1),