Automattic\WooCommerce\Vendor\Detection

MobileDetect::__call()publicWC 1.0

Magic overloading method.

Method of the class: MobileDetect{}

No Hooks.

Return

true|false.

Usage

$MobileDetect = new MobileDetect();
$MobileDetect->__call( $name, $arguments );
$name(string) (required)
-
$arguments(array) (required)
-

MobileDetect::__call() code WC 8.9.0

public function __call(string $name, array $arguments)
{
    // make sure the name starts with 'is', otherwise
    if (substr($name, 0, 2) !== 'is') {
        throw new BadMethodCallException("No such method exists: $name");
    }

    $key = substr($name, 2);

    return $this->matchUAAgainstKey($key);
}