Automattic\WooCommerce\Vendor\Detection

MobileDetect::__call │ public │ WC 1.0

Magic overloading method.

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

Хуков нет.

Возвращает

bool.

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

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

Код MobileDetect::__call() WC 11.2.2

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