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