@@ -224,40 +224,40 @@ public function renderClasses($names)
224224 * @param PropertyDoc $property
225225 * @return string
226226 */
227- public function renderPropertySignature ($ property )
227+ public function renderPropertySignature ($ property, $ context = null )
228228 {
229229 if ($ property ->getter !== null || $ property ->setter !== null ) {
230230 $ sig = [];
231231 if ($ property ->getter !== null ) {
232- $ sig [] = $ this ->renderMethodSignature ($ property ->getter );
232+ $ sig [] = $ this ->renderMethodSignature ($ property ->getter , $ context );
233233 }
234234 if ($ property ->setter !== null ) {
235- $ sig [] = $ this ->renderMethodSignature ($ property ->setter );
235+ $ sig [] = $ this ->renderMethodSignature ($ property ->setter , $ context );
236236 }
237237
238238 return implode ('<br /> ' , $ sig );
239239 }
240240
241- return $ this ->createTypeLink ($ property ->types ) . ' ' . $ this ->createSubjectLink ($ property , $ property ->name ) . ' '
241+ return $ this ->createTypeLink ($ property ->types , $ context ) . ' ' . $ this ->createSubjectLink ($ property , $ property ->name ) . ' '
242242 . ApiMarkdown::highlight ('= ' . ($ property ->defaultValue === null ? 'null ' : $ property ->defaultValue ), 'php ' );
243243 }
244244
245245 /**
246246 * @param MethodDoc $method
247247 * @return string
248248 */
249- public function renderMethodSignature ($ method )
249+ public function renderMethodSignature ($ method, $ context = null )
250250 {
251251 $ params = [];
252252 foreach ($ method ->params as $ param ) {
253- $ params [] = (empty ($ param ->typeHint ) ? '' : $ param ->typeHint . ' ' )
253+ $ params [] = (empty ($ param ->typeHint ) ? '' : $ this -> createTypeLink ( $ param ->typeHint , $ context ) . ' ' )
254254 . ($ param ->isPassedByReference ? '<b>&</b> ' : '' )
255255 . $ param ->name
256256 . ($ param ->isOptional ? ' = ' . $ param ->defaultValue : '' );
257257 }
258258
259259 return ($ method ->isReturnByReference ? '<b>&</b> ' : '' )
260- . ($ method ->returnType === null ? 'void ' : $ this ->createTypeLink ($ method ->returnTypes ))
260+ . ($ method ->returnType === null ? 'void ' : $ this ->createTypeLink ($ method ->returnTypes , $ context ))
261261 . ' <strong> ' . $ this ->createSubjectLink ($ method , $ method ->name ) . '</strong> '
262262 . ApiMarkdown::highlight (str_replace (' ' , ' ' , '( ' . implode (', ' , $ params ) . ' ) ' ), 'php ' );
263263 }
0 commit comments