_WP_Dependency::__construct()publicWP 2.6.0

Setup dependencies.

Method of the class: _WP_Dependency{}

No Hooks.

Return

null. Nothing (null).

Usage

$_WP_Dependency = new _WP_Dependency();
$_WP_Dependency->__construct( ...$args );
...$args(mixed) (required)
Dependency information.

Changelog

Since 2.6.0 Introduced.
Since 5.3.0 Formalized the existing ...$args parameter by adding it to the function signature.

_WP_Dependency::__construct() code WP 6.5.4

public function __construct( ...$args ) {
	list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = $args;
	if ( ! is_array( $this->deps ) ) {
		$this->deps = array();
	}
}