# wp-optimize/4.7.0/vendor/rosell-dk/webp-convert/src/Options/SensitiveArrayOption.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 4.7.0. 40 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/4.7.0/code/vendor/rosell-dk/webp-convert/src/Options/SensitiveArrayOption.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/4.7.0/raw/vendor/rosell-dk/webp-convert/src/Options/SensitiveArrayOption.php
- Modified: 2021-11-30T14:57:30+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/wp-optimize/4.7.0/code/vendor/rosell-dk/webp-convert/src/Options/SensitiveArrayOption.php#L10-L20`.

```php
<?php

namespace WebPConvert\Options;

use WebPConvert\Options\StringOption;
use WebPConvert\Options\Exceptions\InvalidOptionValueException;

/**
 * Abstract option class
 *
 * @package    WebPConvert
 * @author     Bjørn Rosell <it@rosell.dk>
 * @since      Class available since Release 2.0.0
 */
class SensitiveArrayOption extends ArrayOption
{

    public function check()
    {
        parent::check();
    }

    public function getValueForPrint()
    {
        if (count($this->getValue()) == 0) {
            return '(empty array)';
        } else {
            return '(array of ' . count($this->getValue()) . ' items)';
        }
        //return '*****';
    }

    public function getDefinition()
    {
        $obj = parent::getDefinition();
        $obj['sensitive'] = true;
        return $obj;
    }
}

```
