src/Annotation/Body.php 1 location
|
@@ 116-123 (lines=8) @@
|
113 |
|
return $typeName; |
114 |
|
} |
115 |
|
|
116 |
|
private function resolveIfBodyIsOptional(ReflectionMethodWrapper $reflectionMethod): bool |
117 |
|
{ |
118 |
|
if ($this->optional !== null) { |
119 |
|
return $this->optional; |
120 |
|
} |
121 |
|
|
122 |
|
return $reflectionMethod->getParameterByName($this->parameterName)->isDefaultValueAvailable(); |
123 |
|
} |
124 |
|
} |
125 |
|
|
src/Annotation/PathAttribute.php 1 location
|
@@ 118-127 (lines=10) @@
|
115 |
|
} |
116 |
|
} |
117 |
|
|
118 |
|
private function resolveIfResolutionIsMandatory(ReflectionMethodWrapper $reflectionMethod): bool |
119 |
|
{ |
120 |
|
if ($this->resolutionMandatory !== null) { |
121 |
|
return $this->resolutionMandatory; |
122 |
|
} |
123 |
|
|
124 |
|
$parameter = $reflectionMethod->getParameterByName($this->parameterName); |
125 |
|
|
126 |
|
return !$parameter->isDefaultValueAvailable(); |
127 |
|
} |
128 |
|
} |
129 |
|
|