Page MenuHomeDevCentral

Get class name with or without namespace
ClosedPublic

Authored by dereckson on Jun 30 2023, 21:49.
Tags
None
Referenced Files
F6590556: D3215.id8234.diff
Fri, Apr 4, 13:45
F6590549: D3215.id8235.diff
Fri, Apr 4, 13:45
F6576855: D3215.id8234.diff
Thu, Apr 3, 16:34
Unknown Object (File)
Wed, Apr 2, 17:53
Unknown Object (File)
Wed, Apr 2, 09:54
Unknown Object (File)
Sun, Mar 30, 21:17
Unknown Object (File)
Sat, Mar 29, 18:05
Unknown Object (File)
Fri, Mar 28, 02:56
Subscribers
None

Details

Summary
  • CodeClass::getClassName allows to get class name with namespace
  • CodeClass::getShortClassName returns only the class name
Test Plan

This is used in Zed for XmlDocument serialization:

$key = CodeClass::from($value)->getShortClassName();

Unit tests provided.

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.

Remove from static constructor

This revision is now accepted and ready to land.Jun 30 2023, 21:53