Page MenuHomeDevCentral

Get class name with or without namespace
ClosedPublic

Authored by dereckson on Jun 30 2023, 21:49.
Tags
None
Referenced Files
F12318027: D3215.id8236.diff
Thu, Oct 23, 03:20
Unknown Object (File)
Tue, Oct 21, 04:31
Unknown Object (File)
Mon, Oct 20, 22:10
Unknown Object (File)
Sun, Oct 19, 18:28
Unknown Object (File)
Sun, Oct 19, 18:27
Unknown Object (File)
Sat, Oct 18, 03:19
Unknown Object (File)
Fri, Oct 17, 21:00
Unknown Object (File)
Fri, Oct 17, 20:09
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 Passed
Unit
Tests Passed
Branch
codeclass
Build Status
Buildable 5069
Build 5350: arc lint + arc unit

Event Timeline

dereckson created this revision.

Remove from static constructor

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