WC_WCCOM_Site_Installation_Step_Get_Product_Info
in package
implements
WC_WCCOM_Site_Installation_Step
WC_WCCOM_Site_Installation_Step_Get_Product_Info class
Interfaces, Classes and Traits
Table of Contents
- $state : WC_WCCOM_Site_Installation_State
- The current installation state.
- __construct() : mixed
- Constructor.
- run() : array<string|int, mixed>
- Run the step installation process.
- get_wccom_download_url() : string
- Get download URL for wccom product.
- get_wporg_download_url() : string|null
- Get download URL for wporg product.
Properties
$state
The current installation state.
protected
WC_WCCOM_Site_Installation_State
$state
Methods
__construct()
Constructor.
public
__construct(array<string|int, mixed> $state) : mixed
Parameters
- $state : array<string|int, mixed>
-
The current installation state.
Return values
mixed —run()
Run the step installation process.
public
run() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —get_wccom_download_url()
Get download URL for wccom product.
protected
get_wccom_download_url(int $product_id) : string
Parameters
- $product_id : int
-
Product ID.
Tags
Return values
string —get_wporg_download_url()
Get download URL for wporg product.
protected
get_wporg_download_url(array<string|int, mixed> $data) : string|null
Parameters
- $data : array<string|int, mixed>
-
Product data.