Automattic\WooCommerce\Vendor\Detection
MobileDetect::__call()
Magic overloading method.
Метод класса: MobileDetect{}
Хуков нет.
Возвращает
true|false
.
Использование
$MobileDetect = new MobileDetect(); $MobileDetect->__call( $name, $arguments );
- $name(строка) (обязательный)
- -
- $arguments(массив) (обязательный)
- -
Код MobileDetect::__call() MobileDetect:: call WC 9.6.1
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); }