git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3fb7c48
)
improve phpdocs in wrapper generated code
author
gggeek
<giunta.gaetano@gmail.com>
Mon, 4 Jan 2021 22:50:56 +0000
(22:50 +0000)
committer
gggeek
<giunta.gaetano@gmail.com>
Mon, 4 Jan 2021 22:50:56 +0000
(22:50 +0000)
src/Wrapper.php
patch
|
blob
|
history
diff --git
a/src/Wrapper.php
b/src/Wrapper.php
index
c854023
..
2751ec2
100644
(file)
--- a/
src/Wrapper.php
+++ b/
src/Wrapper.php
@@
-17,6
+17,7
@@
use PhpXmlRpc\Helper\Logger;
* @todo implement method wrapping with preservation of php objs in calls
* @todo when wrapping methods without obj rebuilding, use return_type = 'phpvals' (faster)
* @todo add support for 'epivals' mode
* @todo implement method wrapping with preservation of php objs in calls
* @todo when wrapping methods without obj rebuilding, use return_type = 'phpvals' (faster)
* @todo add support for 'epivals' mode
+ * @todo allow setting custom namespace for generated wrapping code
*/
class Wrapper
{
*/
class Wrapper
{
@@
-960,7
+961,7
@@
class Wrapper
$mDesc .= "* @param int \$debug when 1 (or 2) will enable debugging of the underlying {$prefix} call (defaults to 0)\n";
}
$plist = implode(', ', $plist);
$mDesc .= "* @param int \$debug when 1 (or 2) will enable debugging of the underlying {$prefix} call (defaults to 0)\n";
}
$plist = implode(', ', $plist);
- $mDesc .= '* @return
' . $this->xmlrpc2PhpType($mSig[0]) . " (or
an {$namespace}Response obj instance if call fails)\n*/\n";
+ $mDesc .= '* @return
{$namespace}Response|' . $this->xmlrpc2PhpType($mSig[0]) . " (
an {$namespace}Response obj instance if call fails)\n*/\n";
$innerCode .= "\$res = \${$this_}client->send(\$req, $timeout, '$protocol');\n";
if ($decodeFault) {
$innerCode .= "\$res = \${$this_}client->send(\$req, $timeout, '$protocol');\n";
if ($decodeFault) {