Class Factory
In object-oriented programming, a factory is an object for creating other objects – formally a factory is simply an object that returns an object from some method call, which is assumed to be "new". More broadly, a subroutine that returns a "new" object may be referred to as a "factory", as in factory method or factory function. This is a basic concept in OOP, and forms the basis for a number of related software design patterns.
Direct known subclasses
Abstract
Namespace: Docolight\Support
Author: Krisan Alfa Timur krisanalfa@docotel.co.id
Link: Factory (object-oriented programming)
Located at Docolight/Support/Factory.php
Namespace: Docolight\Support
Author: Krisan Alfa Timur krisanalfa@docotel.co.id
Link: Factory (object-oriented programming)
Located at Docolight/Support/Factory.php
Methods summary
public
|
|
abstract public
string
|
|
public
mixed
|
|
protected
mixed
|
|
protected
string
|
|
protected
mixed
|
|
public
|
|
public
mixed
|
Properties summary
protected
|
$container
The container instance. |
|
protected
array
|
$customCreators
The registered custom product creators. |
#
[]
|
protected
array
|
$products
The array of created "products". |
#
[]
|