PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
give / vendor / vendor-prefixed / stellarwp / licensing-api-client / src / Requests / License / DeleteActivation.php

DeleteActivation.php in GiveWP – Donation Plugin and Fundraising Platform 4.17.0, at vendor/vendor-prefixed/stellarwp/licensing-api-client/src/Requests/License/DeleteActivation.php

58 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php declare(strict_types=1);
2
3 namespace Give\Vendors\LiquidWeb\LicensingApiClient\Requests\License;
4
5 /**
6 * Represents a license activation deletion request payload.
7 *
8 * @phpstan-type DeleteActivationPayload array{
9 * license_key: string,
10 * product_slug: string,
11 * domain: string
12 * }
13 */
14 final class DeleteActivation
15 {
16 /**
17 * License key whose activation is being deleted.
18 *
19 * @example LWSW-8H9F-5UKA-VR3B-D7SQ-BP9N
20 */
21 public string $licenseKey;
22
23 /**
24 * Product identifier whose activation is being deleted.
25 *
26 * @example plugin-pro
27 */
28 public string $productSlug;
29
30 /**
31 * Site domain whose activation is being deleted.
32 *
33 * @example example.com
34 */
35 public string $domain;
36
37 public function __construct(
38 string $licenseKey,
39 string $productSlug,
40 string $domain
41 ) {
42 $this->licenseKey = $licenseKey;
43 $this->productSlug = $productSlug;
44 $this->domain = $domain;
45 }
46
47 /**
48 * @return DeleteActivationPayload
49 */
50 public function toArray(): array {
51 return [
52 'license_key' => $this->licenseKey,
53 'product_slug' => $this->productSlug,
54 'domain' => $this->domain,
55 ];
56 }
57 }
58