Homec4science

Simplify the implementation of `PhabricatorPHIDType` subclasses

Authored by Joshua Spence <josh@joshuaspence.com> on Jul 21 2014, 16:38.

Description

Simplify the implementation of PhabricatorPHIDType subclasses

Summary: Instead of implementing the getTypeConstant method in all subclasses of PhabricatorPHIDType, provide a final implementation in the base class which uses reflection. See D9837 for a similar implementation.

Test Plan: Ran arc unit.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin, hach-que

Differential Revision: https://secure.phabricator.com/D9985

Details

Committed
Joshua Spence <josh@joshuaspence.com>Jul 21 2014, 16:38
Pushed
aubortJan 31 2017, 17:16
Parents
rPH37106c1b3178: Don't explicitly name abstract base classes
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rPH254542237a66: Simplify the implementation of `PhabricatorPHIDType` subclasses (authored by Joshua Spence <josh@joshuaspence.com>).Jul 21 2014, 16:38