Pressbooks\Admin\Network\SharingAndPrivacyOptions::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( array $options )
$options array
    function __construct(array $options)
    {
        $this->options = $options;
        $this->defaults = $this->getDefaults();
        $this->booleans = $this->getBooleanOptions();
        foreach ($this->defaults as $key => $value) {
            if (!isset($this->options[$key])) {
                $this->options[$key] = $value;
            }
        }
    }