[FEATURE] Enumeration constants getName methods
It comes in handy to use the names of enumeration objects sometimes. Two getName() functions provide the name once unchanged, once human readable. Resolves: #78575 Releases: master Change-Id: Ibb0e06c7462835097f9980a854c79c8f90a61672 Reviewed-on: https://review.typo3.org/50503 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Michael Oehlhof <typo3@oehlhof.de> Tested-by:
Michael Oehlhof <typo3@oehlhof.de> Reviewed-by:
Andreas Fernandez <typo3@scripting-base.de> Tested-by:
Andreas Fernandez <typo3@scripting-base.de>
Showing
- typo3/sysext/core/Classes/Type/Enumeration.php 28 additions, 0 deletionstypo3/sysext/core/Classes/Type/Enumeration.php
- typo3/sysext/core/Documentation/Changelog/master/Feature-78575-EnumerationConstantsProvideTheirNames.rst 24 additions, 0 deletions...r/Feature-78575-EnumerationConstantsProvideTheirNames.rst
- typo3/sysext/core/Tests/Unit/Type/EnumerationTest.php 36 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Type/EnumerationTest.php
Please register or sign in to comment