Automattic\WooCommerce\Vendor\Symfony\Polyfill\Php80

PhpToken::ispublicWC 1.0

Method of the class: PhpToken{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PhpToken = new PhpToken();
$PhpToken->is( $kind ): bool;
$kind(int|string|array) (required)
.

PhpToken::is() code WC 10.5.0

public function is($kind): bool
{
    foreach ((array) $kind as $value) {
        if (\in_array($value, [$this->id, $this->text], true)) {
            return true;
        }
    }

    return false;
}