mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Added getPosition() to ReflectionParameter class definition.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@260160 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
85140dc9d3
commit
0b61e2b765
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.34 $ -->
|
||||
<!-- $Revision: 1.35 $ -->
|
||||
<sect1 xml:id="language.oop5.reflection" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>Reflection</title>
|
||||
<sect2 xml:id="language.oop5.reflection.toc">
|
||||
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue