Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS

OutputFormat::__call │ public │ WC 1.0

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

Хуков нет.

Возвращает

mixed.

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

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

Код OutputFormat::__call() WC 11.3.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);
    }
}