WC_Shipping_Rate::__getpublicWC 1.0

Magic methods to support direct access to props.

Method of the class: WC_Shipping_Rate{}

No Hooks.

Returns

Mixed.

Usage

$WC_Shipping_Rate = new WC_Shipping_Rate();
$WC_Shipping_Rate->__get( $key );
$key(string) (required)
Key.

WC_Shipping_Rate::__get() code WC 10.6.2

public function __get( $key ) {
	if ( is_callable( array( $this, "get_{$key}" ) ) ) {
		return $this->{"get_{$key}"}();
	}

	if ( isset( $this->data[ $key ] ) ) {
		return $this->data[ $key ];
	}

	return '';
}