PluginProbe
PostNL for WooCommerce / 4.4.1
PostNL for WooCommerce v4.4.1
5.9.12 5.9.11 5.9.10 5.9.9 5.9.8 5.9.7 5.9.6 trunk 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.1.4 3.1.5 3.1.6 3.1.7 4.0.0 4.0.1 4.0.2 4.3.2 4.3.3 4.4.0 4.4.1 All 72 releases
woo-postnl / includes / entities / setting.php

setting.php in PostNL for WooCommerce 4.4.1, at includes/entities/setting.php

52 lines 881 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPO\WC\PostNL\Entity;
4
5 defined('ABSPATH') or exit;
6
7 if (class_exists('\\WPO\\WC\\PostNL\\Entity\\Setting')) {
8 return;
9 }
10
11 /**
12 * Use public fields because this is required for Laravel collections
13 */
14 class Setting
15 {
16 /**
17 * @var string
18 */
19 public $name;
20
21 /**
22 * @var mixed
23 */
24 public $value;
25
26 /**
27 * @var string
28 */
29 public $type;
30
31 /**
32 * @var string|null
33 */
34 public $carrier;
35
36 /**
37 * Setting constructor.
38 *
39 * @param string $name
40 * @param mixed $value
41 * @param string $type
42 * @param string|null $carrier
43 */
44 public function __construct(string $name, $value, string $type, string $carrier = null)
45 {
46 $this->name = $name;
47 $this->value = $value;
48 $this->type = $type;
49 $this->carrier = $carrier;
50 }
51 }
52