Documentation

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

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

Search results