Page MenuHomeDevCentral

Get class name with or without namespace
ClosedPublic

Authored by dereckson on Jun 30 2023, 21:49.
Tags
None
Referenced Files
F22392209: D3215.id8235.diff
Wed, Jan 28, 08:51
F22309746: D3215.id8232.diff
Tue, Jan 27, 20:42
F22291625: D3215.diff
Tue, Jan 27, 18:06
Unknown Object (File)
Mon, Jan 26, 08:18
Unknown Object (File)
Fri, Jan 23, 08:25
Unknown Object (File)
Fri, Jan 23, 04:31
Unknown Object (File)
Thu, Jan 22, 01:06
Unknown Object (File)
Wed, Jan 21, 12:47
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