Files
yii2/tests/framework/db/AnyCaseValue.php
2025-10-10 23:04:09 +03:00

30 lines
624 B
PHP

<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\db;
class AnyCaseValue extends CompareValue
{
public $value;
/**
* Constructor.
* @param string|string[] $value
* @param array $config
*/
public function __construct($value, $config = [])
{
if (\is_array($value)) {
$this->value = array_map('strtolower', $value);
} else {
$this->value = strtolower($value);
}
parent::__construct($config);
}
}