| 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 |
|