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

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

- Page: https://pluginprobe.com/plugins/wp-optimize/4.7.0/code/vendor/rosell-dk/webp-convert/src/Options/SensitiveStringOption.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/4.7.0/raw/vendor/rosell-dk/webp-convert/src/Options/SensitiveStringOption.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/SensitiveStringOption.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 SensitiveStringOption extends StringOption
{

    public function __construct($id, $defaultValue, $enum = null)
    {
        parent::__construct($id, $defaultValue, $enum);
    }

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

    public function getValueForPrint()
    {
        if (strlen($this->getValue()) == 0) {
            return '""';
        }
        return '*****';
    }

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

```
