File "SensitiveArrayOption.php"
Full Path: /var/www/html/wordpress/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Options/SensitiveArrayOption.php
File size: 819 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace WebPConvert\Options;
use WebPConvert\Options\StringOption;
use WebPConvert\Options\Exceptions\InvalidOptionValueException;
/**
* Abstract option class
*
* @package WebPConvert
* @author Bjørn Rosell <[email protected]>
* @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;
}
}