MockDependencies
in package
Class that hold a number of dependencies and a class name Can be used to create instances of that class or modify dependencies
Table of Contents
- $class : string
- $dependencies : array<string|int, mixed>
- $dependenciesMap : array<string|int, mixed>
- __construct() : mixed
- get() : mixed
- getValues() : mixed
- instantiate() : mixed
Properties
$class
protected
string
$class
$dependencies
protected
array<string|int, mixed>
$dependencies
$dependenciesMap
protected
array<string|int, mixed>
$dependenciesMap
Methods
__construct()
public
__construct(string $class, array<string|int, mixed> $dependencies) : mixed
Parameters
- $class : string
- $dependencies : array<string|int, mixed>
Return values
mixed —get()
public
get(string $name) : mixed
Parameters
- $name : string
Return values
mixed —getValues()
public
getValues() : mixed
Return values
mixed —instantiate()
public
instantiate() : mixed