"Verb": "New",
06 "Noun": "Command1",
07 "OriginalName": "
"
08 },
09 {
10 "Verb": "New",
11 "Noun": "Command2",
12 "OriginalName": "
18%
02.02.2021
the appropriate variables, which are then assigned values by a constructor (Listing 3, lines 2-12). In PHP 8, this can be written in a concise way (Listing 3, lines 15-21).
Listing 3
Encapsulating Data