File "IPRule.php"
Full Path: /home/warrior1/public_html/languages/wp-content/plugins/file-manager/vendor/bitapps/wp-validator/src/Rules/IPRule.php
File size: 362 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace BitApps\WPValidator\Rules;
use BitApps\WPValidator\Rule;
class IPRule extends Rule
{
private $message = "The :attribute must be a valid IP address";
public function validate($value)
{
return filter_var($value, FILTER_VALIDATE_IP) !== false;
}
public function message()
{
return $this->message;
}
}