HomeDevCentral

Get class name with or without namespace
d2642df51528Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Get class name with or without namespace

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.

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D3215

Details

Provenance
derecksonAuthored on Jun 30 2023, 21:44
derecksonPushed on Jul 1 2023, 20:39
Parents
rKERUALD95fdbfcfe7d9: Allow to map hashmap into a vector
Branches
Unknown
Tags
Unknown

Event Timeline