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