Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

StoredUrl::__construct()publicWC 1.0

Sets up the approved directory rule.

Method of the class: StoredUrl{}

No Hooks.

Return

null. Nothing (null).

Usage

$StoredUrl = new StoredUrl();
$StoredUrl->__construct( $id, $url, $enabled );
$id(int) (required)
The approved directory ID.
$url(string) (required)
The approved directory URL.
$enabled(true|false) (required)
Indicates if the approved directory rule is enabled.

StoredUrl::__construct() code WC 8.7.0

public function __construct( int $id, string $url, bool $enabled ) {
	$this->id      = $id;
	$this->url     = $url;
	$this->enabled = $enabled;
}