WooCommerce Code Reference

DeprecatedClassFacade
in package

A facade to allow deprecating an entire class.

Table of Contents

$instance  : object
The instance that this facade covers over.
__call()  : mixed
Executes when calling any function on an instance of this class.
__callStatic()  : mixed
Executes when calling any static function on this class.
__construct()  : mixed
Constructor.
log_deprecation()  : mixed
Log a deprecation to the error log.

Properties

Methods

__call()

Executes when calling any function on an instance of this class.

public __call(string $name, array<string|int, mixed> $arguments) : mixed
Parameters
$name : string

The name of the function being called.

$arguments : array<string|int, mixed>

An array of the arguments to the function call.

Return values
mixed

__callStatic()

Executes when calling any static function on this class.

public static __callStatic(string $name, array<string|int, mixed> $arguments) : mixed
Parameters
$name : string

The name of the function being called.

$arguments : array<string|int, mixed>

An array of the arguments to the function call.

Return values
mixed

log_deprecation()

Log a deprecation to the error log.

private static log_deprecation(string $function) : mixed
Parameters
$function : string

The name of the deprecated function being called.

Return values
mixed