Page MenuHomeDevCentral

Get class name with or without namespace
ClosedPublic

Authored by dereckson on Jun 30 2023, 21:49.
Tags
None
Referenced Files
F23610004: D3215.id8234.diff
Thu, Feb 5, 16:26
F23600850: D3215.id8234.diff
Thu, Feb 5, 15:09
Unknown Object (File)
Wed, Feb 4, 02:21
Unknown Object (File)
Mon, Feb 2, 16:58
Unknown Object (File)
Sun, Feb 1, 18:52
Unknown Object (File)
Sat, Jan 31, 10:14
Unknown Object (File)
Fri, Jan 30, 06:32
Unknown Object (File)
Thu, Jan 29, 19: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 5068
Build 5349: 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