[FEATURE] Enumeration constants getName methods 03/50503/7
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 4 Nov 2016 16:20:19 +0000 (17:20 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Sat, 5 Nov 2016 18:12:56 +0000 (19:12 +0100)
commit5cf95564b8cbf6d45ddba50c015ee7436de185fa
tree20be533338ec792f82c703c46c928ed71bf9c635
parent420b16f635b28fbf7facc83aad845682fdcee20d
[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>
typo3/sysext/core/Classes/Type/Enumeration.php
typo3/sysext/core/Documentation/Changelog/master/Feature-78575-EnumerationConstantsProvideTheirNames.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Type/EnumerationTest.php