Automattic\WooCommerce\Vendor\Detection

MobileDetect::__callpublicWC 1.0

Magic overloading method.

Метод класса: MobileDetect{}

Хуков нет.

Возвращает

true|false.

Использование

$MobileDetect = new MobileDetect();
$MobileDetect->__call( $name, $arguments );
$name(строка) (обязательный)
.
$arguments(массив) (обязательный)
.

Код MobileDetect::__call() WC 10.4.3

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);
}