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