Page MenuHomeDevCentral

Get class name with or without namespace
ClosedPublic

Authored by dereckson on Jun 30 2023, 21:49.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 23, 04:22
Unknown Object (File)
Mon, Jun 22, 14:24
Unknown Object (File)
Sun, Jun 21, 13:22
Unknown Object (File)
Fri, Jun 19, 22:13
Unknown Object (File)
Fri, Jun 19, 04:47
Unknown Object (File)
Thu, Jun 18, 05:13
Unknown Object (File)
Wed, Jun 17, 23:45
Unknown Object (File)
Wed, Jun 17, 07:28
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