Files
masimmo.pl/modules/x13webp/vendor/rosell-dk/webp-convert/src/Options/SensitiveArrayOption.php
Jacek Pyziak 3b29a79921 Add X13 WebP module for image conversion to next-generation formats
- Implemented the main module class with essential properties and methods.
- Added translation support for various user interface strings.
- Created XML configuration file for module versioning.
- Ensured compatibility with different PHP versions and PrestaShop versions.
2025-10-16 21:30:24 +02:00

40 lines
819 B
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;
}
}