HomeDevCentral

Get class name with or without namespace

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 Jun 30 2023, 21:53
Reviewer
dereckson
Differential Revision
D3215: Get class name with or without namespace
Parents
rKERUALD081115a84737: Allow to map hashmap into a vector
Branches
Unknown
Tags
Unknown