Automattic\WooCommerce\Vendor\Sabberworm\CSS

OutputFormat::__call │ public │ WC 1.0

Method of the class: OutputFormat{}

No Hooks.

Returns

mixed.

Usage

$OutputFormat = new OutputFormat();
$OutputFormat->__call( $sMethodName, $aArguments );
$sMethodName(string) (required)
.
$aArguments(array<array-key, mixed>) (required)
.

OutputFormat::__call() code WC 11.1.2

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