WooCommerce Code Reference

FactoryType extends AbstractDependencyType
in package

Definition for the FactoryType dependency type.

Tags
since
2.5.0

Table of Contents

$callable_or_value  : mixed
Holds a callable or value provided for this type.
__construct()  : mixed
Constructor
get()  : mixed
Invokes and returns the value from the stored internal callback.
resolve_value()  : mixed
Resolver for the internal dependency value.

Properties

Methods

__construct()

Constructor

public __construct(mixed $callable_or_value) : mixed
Parameters
$callable_or_value : mixed

A callable or value for the dependency type instance.

Return values
mixed