src/ExtensionDefinition.php 1 location
|
@@ 40-46 (lines=7) @@
|
37 |
|
{ |
38 |
|
$returnTypeCode = ''; |
39 |
|
$returnType = $this->reflectionMethod->getReturnType(); |
40 |
|
if ($returnType) { |
41 |
|
if ($returnType->isBuiltin()) { |
42 |
|
$returnTypeCode = ': '.$this->reflectionMethod->getReturnType(); |
43 |
|
} else { |
44 |
|
$returnTypeCode = ': \\'.$this->reflectionMethod->getReturnType(); |
45 |
|
} |
46 |
|
} |
47 |
|
|
48 |
|
$parameters = $this->reflectionMethod->getParameters(); |
49 |
|
|
src/FactoryDefinition.php 1 location
|
@@ 61-67 (lines=7) @@
|
58 |
|
{ |
59 |
|
$returnTypeCode = ''; |
60 |
|
$returnType = $this->reflectionMethod->getReturnType(); |
61 |
|
if ($returnType) { |
62 |
|
if ($returnType->isBuiltin()) { |
63 |
|
$returnTypeCode = ': '.$this->reflectionMethod->getReturnType(); |
64 |
|
} else { |
65 |
|
$returnTypeCode = ': \\'.$this->reflectionMethod->getReturnType(); |
66 |
|
} |
67 |
|
} |
68 |
|
|
69 |
|
return sprintf( |
70 |
|
<<<EOF |