@@ -39,6 +39,9 @@ discard block |
||
39 | 39 | { |
40 | 40 | private $_obj = null; |
41 | 41 | |
42 | + /** |
|
43 | + * @param \Mocks\MockClass $obj |
|
44 | + */ |
|
42 | 45 | public function __construct($obj) |
43 | 46 | { |
44 | 47 | $this->_obj = $obj; |
@@ -68,6 +71,9 @@ discard block |
||
68 | 71 | } |
69 | 72 | } |
70 | 73 | |
74 | + /** |
|
75 | + * @param Parser\ParameterParser[] $parameters |
|
76 | + */ |
|
71 | 77 | private function _parseArgs($args, $parameters) |
72 | 78 | { |
73 | 79 | $args = Arrays::getValue($args, 0, new stdClass()); |
@@ -26,7 +26,6 @@ |
||
26 | 26 | use Ouzo\Utilities\Inflector; |
27 | 27 | use WSDL\Parser\MethodParser; |
28 | 28 | use WSDL\Types\Type; |
29 | -use WSDL\Utilities\Strings; |
|
30 | 29 | use WSDL\Utilities\TypeHelper; |
31 | 30 | |
32 | 31 | /** |
@@ -67,6 +67,9 @@ discard block |
||
67 | 67 | |
68 | 68 | public static $alreadyGeneratedComplexTypes = array(); |
69 | 69 | |
70 | + /** |
|
71 | + * @param string $namespace |
|
72 | + */ |
|
70 | 73 | public function __construct($name, $namespace, $location) |
71 | 74 | { |
72 | 75 | $this->_name = $this->extractClassName($name); |
@@ -91,6 +94,9 @@ discard block |
||
91 | 94 | return $reflectedClass->getShortName(); |
92 | 95 | } |
93 | 96 | |
97 | + /** |
|
98 | + * @param MethodParser[] $WSDLMethods |
|
99 | + */ |
|
94 | 100 | public function setWSDLMethods($WSDLMethods) |
95 | 101 | { |
96 | 102 | $this->_WSDLMethods = $WSDLMethods; |
@@ -159,6 +165,9 @@ discard block |
||
159 | 165 | return $this; |
160 | 166 | } |
161 | 167 | |
168 | + /** |
|
169 | + * @param \DOMElement $schemaElement |
|
170 | + */ |
|
162 | 171 | private function _typesParameters($parameters, $schemaElement) |
163 | 172 | { |
164 | 173 | foreach ($parameters as $parameter) { |
@@ -439,6 +448,9 @@ discard block |
||
439 | 448 | return $attribute; |
440 | 449 | } |
441 | 450 | |
451 | + /** |
|
452 | + * @param string $elementName |
|
453 | + */ |
|
442 | 454 | public function createElementWithAttributes($elementName, $attributes, $value = '') |
443 | 455 | { |
444 | 456 | $element = $this->_createElement($elementName, $value); |
@@ -306,7 +306,7 @@ |
||
306 | 306 | )); |
307 | 307 | $partsInput = $this->_bindingStyle->methodInput($method); |
308 | 308 | $obj = $this; |
309 | - $partsInput = array_map(function ($attributes) use ($obj) { |
|
309 | + $partsInput = array_map(function($attributes) use ($obj) { |
|
310 | 310 | return $obj->createElementWithAttributes('part', $attributes); |
311 | 311 | }, $partsInput); |
312 | 312 | foreach ($partsInput as $part) { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * @WebMethod |
53 | 53 | * @param object $object1 @string=$name @int=$id |
54 | - * @return object $return @string=$new_name @int=$new_id |
|
54 | + * @return stdClass $return @string=$new_name @int=$new_id |
|
55 | 55 | */ |
56 | 56 | public function arrayTest($object1) |
57 | 57 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | /** |
75 | 75 | * @WebMethod |
76 | - * @return wrapper[] $mockUsers @className=\Mocks\MockUserWrapper |
|
76 | + * @return MockUserWrapper[] $mockUsers @className=\Mocks\MockUserWrapper |
|
77 | 77 | */ |
78 | 78 | public function arrayOfMockUser() |
79 | 79 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * @param string $name |
31 | 31 | * @param wrapper $customer @className=\Mocks\WrapperClass\Customer |
32 | 32 | * @param wrapper $purchase @className=\Mocks\WrapperClass\Purchase |
33 | - * @return wrapper $purchaseResult @className=\Mocks\WrapperClass\PurchaseResult |
|
33 | + * @return integer $purchaseResult @className=\Mocks\WrapperClass\PurchaseResult |
|
34 | 34 | */ |
35 | 35 | public function multipleWrappers($name, $customer, $purchase) |
36 | 36 | { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @param object $object1 @string=name @int=id |
35 | - * @return object $return @string=new_name @int=new_id |
|
35 | + * @return stdClass $return @string=new_name @int=new_id |
|
36 | 36 | */ |
37 | 37 | public function arrayTest($object1) |
38 | 38 | { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | { |
59 | 59 | preg_match_all('#@(\((?:.+)\)|(?:.+?))(?: |$)#', $types, $matches); |
60 | 60 | $typesArray = $matches[1]; |
61 | - $obj = array_map(function ($type) { |
|
61 | + $obj = array_map(function($type) { |
|
62 | 62 | if (ComplexTypeParser::isReflectionType($type)) { |
63 | 63 | $type = str_replace(array('(', ')'), '', $type); |
64 | 64 | } else { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | public static function hasName($name) |
44 | 44 | { |
45 | - return function ($callStub) use ($name) { |
|
45 | + return function($callStub) use ($name) { |
|
46 | 46 | return $callStub->name == $name; |
47 | 47 | }; |
48 | 48 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | private function getMatchingStubbedCalls($methodCall) |
33 | 33 | { |
34 | - $matching = Arrays::filter($this->_stubbed_calls, function ($stubbed_call) use ($methodCall) { |
|
34 | + $matching = Arrays::filter($this->_stubbed_calls, function($stubbed_call) use ($methodCall) { |
|
35 | 35 | return $stubbed_call->matches($methodCall); |
36 | 36 | }); |
37 | 37 | return $matching; |