Automattic\WooCommerce\Internal\Utilities

URL::__construct()publicWC 1.0

Creates and processes the provided URL (or filepath).

Method of the class: URL{}

No Hooks.

Return

null. Nothing (null).

Usage

$URL = new URL();
$URL->__construct( $url );
$url(string) (required)
The URL (or filepath).

URL::__construct() code WC 8.7.0

public function __construct( string $url ) {
	$this->url = $url;
	$this->preprocess();
	$this->process_path();
}