Automattic\WooCommerce\Vendor\Sabberworm\CSS

OutputFormat::__callpublicWC 1.0

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

Хуков нет.

Возвращает

Разное.

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

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

Код OutputFormat::__call() WC 10.5.0

public function __call($sMethodName, array $aArguments)
{
    if (strpos($sMethodName, 'set') === 0) {
        return $this->set(substr($sMethodName, 3), $aArguments[0]);
    } elseif (strpos($sMethodName, 'get') === 0) {
        return $this->get(substr($sMethodName, 3));
    } elseif (method_exists(OutputFormatter::class, $sMethodName)) {
        // @deprecated since 8.8.0, will be removed in 9.0.0. Call the method on the formatter directly instead.
        return call_user_func_array([$this->getFormatter(), $sMethodName], $aArguments);
    } else {
        throw new \Exception('Unknown OutputFormat method called: ' . $sMethodName);
    }
}