file-fetcher
Public Member Functions | List of all members
Contracts\FactoryInterface Interface Reference
Inheritance diagram for Contracts\FactoryInterface:
Contracts\Mock\Storage\MemoryFactory

Public Member Functions

 getInstance (string $identifier, array $config=[])
 

Member Function Documentation

◆ getInstance()

Contracts\FactoryInterface::getInstance ( string  $identifier,
array  $config = [] 
)

Construct or deliver an object of the expected class.

For example a MemoryStorage factory should return MemoryStorage objects.

Parameters
string$identifierSome way to discern between different instances of a class.
Returns
mixed

Implemented in Contracts\Mock\Storage\MemoryFactory.


The documentation for this interface was generated from the following file: