Automattic\WooCommerce\Vendor\Sabberworm\CSS

OutputFormat::getpublicWC 1.0

Deprecated since 8.8.0. It is no longer supported and may be removed in future releases. Use specific getters instead.

Method of the class: OutputFormat{}

No Hooks.

Returns

String|null.

Usage

$OutputFormat = new OutputFormat();
$OutputFormat->get( $sName );
$sName(string) (required)
.

Changelog

Deprecated Since 8.8.0 , will be removed in 9.0.0. Use specific getters instead.

OutputFormat::get() code WC 10.8.1

public function get($sName)
{
    $aVarPrefixes = ['a', 's', 'm', 'b', 'f', 'o', 'c', 'i'];
    foreach ($aVarPrefixes as $sPrefix) {
        $sFieldName = $sPrefix . ucfirst($sName);
        if (isset($this->$sFieldName)) {
            return $this->$sFieldName;
        }
    }
    return null;
}