Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
Prepping for 2.2.0RC1.
  • Loading branch information
weierophinney committed May 1, 2013
153 parents d089acd + 6fcf214 + bcbd2dd + 91375d9 + da20dbf + 8cb31b9 + 34aaa76 + a941379 + 5ec4274 + 1a8b800 + 045212a + c918e2c + 1d51877 + 073ffb1 + 6cc70c4 + cca448e + 5f78560 + 1c0be41 + 02f7335 + 88a04db + b1c3dd1 + f3d5365 + 88de986 + fb38487 + 7bfe758 + 2e55342 + 6a04f31 + 57ecc1a + b78abaa + 30a9569 + f96aa9d + 23f86e7 + d43d656 + 4de219f + 3c20bba + a0d3747 + 456d331 + e503406 + 95c2a28 + 1fc5b65 + bc3880f + 2989a80 + e8f73d2 + fcc59de + ad50dbb + a46cbd4 + 6192f93 + bb42677 + 02419fd + cf6df36 + 92345be + 737b39e + fde18af + 43ca092 + e3acc17 + b5bc61a + 30d69f9 + 7dbd12c + 9f45cc7 + 473bfa3 + 916cd80 + 5aac7b0 + 6f66646 + 12c90a3 + 435c161 + 9bb6b33 + 6c32cce + f3c637f + c54876c + e1d13eb + daa8e6c + 5570955 + 388a6c0 + ac33840 + 00e233b + 532572e + 1e1f8d2 + b636e56 + 18878ed + 79ce391 + 9db7d70 + 0c2ce53 + 8dbc4b8 + b8b5d22 + 3dac49c + c87ef97 + 1ffe869 + fbe0570 + 802848d + 9fd0967 + 537b471 + 8cc3c9d + 7f51755 + 71ea52c + f2338ea + 226aada + 6f2818d + fafc8ae + 06d397d + 42a5665 + 9b6e2d1 + 96a0498 + 8cc5c74 + e3d1211 + ec85470 + a6f2c9c + fd7b83c + 6d8b4af + b29c8c0 + 64f42ce + 1a82cad + becf6c6 + 2ef3150 + 298e4df + 829ed04 + 4f30658 + ca02442 + 93fe9e8 + 28004c9 + ee4145b + 5e1f577 + 783b983 + 7b0d8d0 + 93db32e + 2b88f8e + fddfc5a + 7bc42fb + 0fe8dfb + 5ee657c + 5f406b6 + c948fa3 + 960d3da + c281e33 + 62224a4 + 6f2357e + 20aefa2 + 31e6b5a + 8a77c3a + 4982e89 + 1386ed7 + 67368ff + 95214da + 6434c7e + 659bce0 + e6b0ec4 + 5fcb527 + 19f72a6 + 5abe4b0 + 8993ba7 + b8734d1 + e0c31db + 3a7c753 + c36df00 commit f31a6f9
Show file tree
Hide file tree
Showing 37 changed files with 4,277 additions and 2,286 deletions.
202 changes: 122 additions & 80 deletions src/AutoDiscover.php

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
use Zend\Server\Reflection\ReflectionParameter;

/**
* Describes how types, return values and method details are detected during AutoDiscovery of a WSDL.
* Describes how types, return values and method details are detected during
* AutoDiscovery of a WSDL.
*/
interface DiscoveryStrategyInterface
{
Expand All @@ -23,7 +24,7 @@ interface DiscoveryStrategyInterface
*
* Default implementation assumes the default param doc-block tag.
*
* @param ReflectionParameter $param
* @param ReflectionParameter $param
* @return string
*/
public function getFunctionParameterType(ReflectionParameter $param);
Expand All @@ -33,8 +34,8 @@ public function getFunctionParameterType(ReflectionParameter $param);
*
* Default implementation assumes the value of the return doc-block tag.
*
* @param AbstractFunction $function
* @param Prototype $prototype
* @param AbstractFunction $function
* @param Prototype $prototype
* @return string
*/
public function getFunctionReturnType(AbstractFunction $function, Prototype $prototype);
Expand All @@ -44,8 +45,8 @@ public function getFunctionReturnType(AbstractFunction $function, Prototype $pro
*
* Default implementation assumes one-way, when return value is "void".
*
* @param AbstractFunction $function
* @param Prototype $prototype
* @param AbstractFunction $function
* @param Prototype $prototype
* @return bool
*/
public function isFunctionOneWay(AbstractFunction $function, Prototype $prototype);
Expand All @@ -55,7 +56,7 @@ public function isFunctionOneWay(AbstractFunction $function, Prototype $prototyp
*
* Default implementation uses docblock description.
*
* @param AbstractFunction $function
* @param AbstractFunction $function
* @return string
*/
public function getFunctionDocumentation(AbstractFunction $function);
Expand Down
30 changes: 28 additions & 2 deletions src/AutoDiscover/DiscoveryStrategy/ReflectionDiscovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,52 @@
use Zend\Server\Reflection\ReflectionParameter;

/**
* Describes how types, return values and method details are detected during AutoDiscovery of a WSDL.
* Describes how types, return values and method details are detected during
* AutoDiscovery of a WSDL.
*/

class ReflectionDiscovery implements DiscoveryStrategyInterface
{
/**
* Returns description from phpdoc block
*
* @param AbstractFunction $function
* @return string
*/
public function getFunctionDocumentation(AbstractFunction $function)
{
return $function->getDescription();
}

/**
* Return parameter type
*
* @param ReflectionParameter $param
* @return string
*/
public function getFunctionParameterType(ReflectionParameter $param)
{
return $param->getType();
}

/**
* Return function return type
*
* @param AbstractFunction $function
* @param Prototype $prototype
* @return string
*/
public function getFunctionReturnType(AbstractFunction $function, Prototype $prototype)
{
return $prototype->getReturnType();
}

/**
* Return true if function is one way (return nothing)
*
* @param AbstractFunction $function
* @param Prototype $prototype
* @return bool
*/
public function isFunctionOneWay(AbstractFunction $function, Prototype $prototype)
{
return $prototype->getReturnType() == 'void';
Expand Down
Loading

0 comments on commit f31a6f9

Please sign in to comment.