WC_Order_Item_Shipping::offsetSet PHP Method

offsetSet() public method

offsetSet for ArrayAccess/Backwards compatibility.
Deprecation: Add deprecation notices in future release.
public offsetSet ( string $offset, mixed $value )
$offset string
$value mixed
    public function offsetSet($offset, $value)
    {
        if ('cost' === $offset) {
            $offset = 'total';
        }
        parent::offsetSet($offset, $value);
    }