# woo-postnl/4.4.1/includes/entities/setting.php

PostNL for WooCommerce, version 4.4.1. 52 lines.

- Page: https://pluginprobe.com/plugins/woo-postnl/4.4.1/code/includes/entities/setting.php
- Raw: https://pluginprobe.com/plugins/woo-postnl/4.4.1/raw/includes/entities/setting.php
- Modified: 2021-01-04T09:17:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woo-postnl/4.4.1/code/includes/entities/setting.php#L10-L20`.

```php
<?php

namespace WPO\WC\PostNL\Entity;

defined('ABSPATH') or exit;

if (class_exists('\\WPO\\WC\\PostNL\\Entity\\Setting')) {
    return;
}

/**
 * Use public fields because this is required for Laravel collections
 */
class Setting
{
    /**
     * @var string
     */
    public $name;

    /**
     * @var mixed
     */
    public $value;

    /**
     * @var string
     */
    public $type;

    /**
     * @var string|null
     */
    public $carrier;

    /**
     * Setting constructor.
     *
     * @param string      $name
     * @param mixed       $value
     * @param string      $type
     * @param string|null $carrier
     */
    public function __construct(string $name, $value, string $type, string $carrier = null)
    {
        $this->name    = $name;
        $this->value   = $value;
        $this->type    = $type;
        $this->carrier = $carrier;
    }
}

```
