joachim,
@joachim@drupal.community avatar

What's the generic term for keywords in like 'static', 'public', 'final', etc?

andy_blum,
@andy_blum@drupal.community avatar
Crell,
@Crell@phpc.social avatar

@joachim In PER-CS, we refer to these as "Modifier Keywords."

https://www.php-fig.org/per/coding-style/#46-modifier-keywords

(Honestly I think I just made the term up as I was writing that section. I don't know of any other de facto standard name.)

pcambra,
@pcambra@drupal.community avatar

@joachim public, private, protected I know as visibility keywords

davesh,
@davesh@hachyderm.io avatar
joachim,
@joachim@drupal.community avatar

@davesh That's not specific enough though.

merms,
@merms@mastodon.social avatar

@joachim I don’t know but I’d go with “method modifier”.

joachim,
@joachim@drupal.community avatar

@merms They apply to properties as well! I call them 'modifiers' but I wonder if there's a proper name.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • rosin
  • thenastyranch
  • ethstaker
  • osvaldo12
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • ngwrru68w68
  • slotface
  • GTA5RPClips
  • kavyap
  • cubers
  • JUstTest
  • everett
  • cisconetworking
  • tacticalgear
  • anitta
  • khanakhh
  • normalnudes
  • Durango
  • modclub
  • tester
  • provamag3
  • Leos
  • megavids
  • lostlight
  • All magazines