@@ -238,8 +238,16 @@ public function renderPropertySignature($property, $context = null)
238238 return implode ('<br /> ' , $ sig );
239239 }
240240
241- return $ this ->createTypeLink ($ property ->types , $ context ) . ' ' . $ this ->createSubjectLink ($ property , $ property ->name ) . ' '
242- . ApiMarkdown::highlight ('= ' . ($ property ->defaultValue === null ? 'null ' : $ property ->defaultValue ), 'php ' );
241+ $ definition = [];
242+ $ definition [] = $ property ->visibility ;
243+ if ($ property ->isStatic ) {
244+ $ definition [] = 'static ' ;
245+ }
246+
247+ return '<span class="signature-defs"> ' . implode (' ' , $ definition ) . '</span> '
248+ . '<span class="signature-type"> ' . $ this ->createTypeLink ($ property ->types , $ context ) . '</span> '
249+ . ' ' . $ this ->createSubjectLink ($ property , $ property ->name ) . ' '
250+ . ApiMarkdown::highlight ('= ' . ($ property ->defaultValue === null ? 'null ' : $ property ->defaultValue ), 'php ' );
243251 }
244252
245253 /**
@@ -256,9 +264,19 @@ public function renderMethodSignature($method, $context = null)
256264 . ($ param ->isOptional ? ' = ' . $ param ->defaultValue : '' );
257265 }
258266
259- return ($ method ->isReturnByReference ? '<b>&</b> ' : '' )
260- . ($ method ->returnType === null ? 'void ' : $ this ->createTypeLink ($ method ->returnTypes , $ context ))
261- . ' <strong> ' . $ this ->createSubjectLink ($ method , $ method ->name ) . '</strong> '
267+ $ definition = [];
268+ $ definition [] = $ method ->visibility ;
269+ if ($ method ->isAbstract ) {
270+ $ definition [] = 'abstract ' ;
271+ }
272+ if ($ method ->isStatic ) {
273+ $ definition [] = 'static ' ;
274+ }
275+
276+ return '<span class="signature-defs"> ' . implode (' ' , $ definition ) . '</span> '
277+ . '<span class="signature-type"> ' . ($ method ->isReturnByReference ? '<b>&</b> ' : '' )
278+ . ($ method ->returnType === null ? 'void ' : $ this ->createTypeLink ($ method ->returnTypes , $ context )) . '</span> '
279+ . '<strong> ' . $ this ->createSubjectLink ($ method , $ method ->name ) . '</strong> '
262280 . ApiMarkdown::highlight (str_replace (' ' , ' ' , '( ' . implode (', ' , $ params ) . ' ) ' ), 'php ' );
263281 }
264282
0 commit comments