File "LowercaseRule.php"
Full Path: /home/warrior1/public_html/languages/wp-content/plugins/file-manager/vendor/bitapps/wp-validator/src/Rules/LowercaseRule.php
File size: 344 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace BitApps\WPValidator\Rules;
use BitApps\WPValidator\Rule;
class LowercaseRule extends Rule
{
private $message = "The :attribute must be in lowercase";
public function validate($value)
{
return $value === strtolower($value);
}
public function message()
{
return $this->message;
}
}