Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

StoredUrl::__construct()publicWC 1.0

Sets up the approved directory rule.

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

No Hooks.

Return

null. Nothing.

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.

Code of StoredUrl::__construct() WC 7.1.0

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