FromConfigInterface
in
Interfaces that adds a factory method which is used to instantiate a class from an array of configuration options.
Table of Contents
Methods
- factory() : FromConfigInterface
- Static factory method used to turn an array or collection of configuration data into an instantiated object.
Methods
factory()
Static factory method used to turn an array or collection of configuration data into an instantiated object.
public
static factory([array<string|int, mixed>|Collection $config = array() ]) : FromConfigInterface
Parameters
- $config : array<string|int, mixed>|Collection = array()
-
Configuration data