Version 1.x

Introduction

Version 1 is based on the LookUpMethodByType feature from our original php-reflection library. We've retired that library, moving parts of it into PHP: The Missing Bits, some of it into here, and the rest into a new multi-variant Reflection Library.

Key Ideas

The key idea in Version 1 is type mapping:

Components

Version 1 ships with the following namespaces:

Namespace Purpose
GanbaroDigital\Polymorphism\V1\Interfaces interfaces defined by the Polymorphism Library
GanbaroDigital\Polymorphism\V1\DispatchTables caching wrappers around the TypeMapper
GanbaroDigital\Polymorphism\V1\TypeMapping map types onto methods

Click on the namespace to learn more about the classes in that component.