[note] OOE: a get() method always returns a Drupal array or string; it means you are leaving the purely object-oriented OOE world and entering the Drupal world of structured PHP arrays enforced only by convention and documentation.


By a get() method is not meant a property getter, it means literally 'get()' with no arguments and only 3 letters in the method name ! The get() methods are how OOE talks to Drupal core, they assemble everything to return a valid Drupal array (or string).

The UML signature is always one of:

«!drupal» get() : array
«!drupal» get() : string
«!drupal» get() : string|array