Page MenuHomeDevCentral

Get class name with or without namespace
ClosedPublic

Authored by dereckson on Jun 30 2023, 21:49.
Tags
None
Referenced Files
F4077013: D3215.id8233.diff
Thu, Jan 30, 13:32
F4076046: D3215.id8233.diff
Thu, Jan 30, 04:42
Unknown Object (File)
Mon, Jan 27, 04:12
Unknown Object (File)
Sun, Jan 26, 04:44
Unknown Object (File)
Sun, Jan 26, 04:36
Unknown Object (File)
Sun, Jan 26, 04:02
Unknown Object (File)
Sun, Jan 26, 02:43
Unknown Object (File)
Sat, Jan 25, 22:38
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 5067
Build 5348: 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