Automattic\WooCommerce\Internal\Utilities

URL::__construct()publicWC 1.0

Creates and processes the provided URL (or filepath).

Метод класса: URL{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of URL::__construct() WC 7.1.0

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