PHP Класс WC_Order_Item_Tax

С версии: 2.7.0
Автор: WooThemes
Наследование: extends WC_Order_Item
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$extra_data array Order Data array. This is the core order data exposed in APIs since 2.7.0.

Открытые методы

Метод Описание
get_compound ( string $context = 'view' ) : boolean Get compound.
get_label ( string $context = 'view' ) : string Get label.
get_name ( string $context = 'view' ) : string Get rate code/name.
get_rate_code ( string $context = 'view' ) : string Get rate code/name.
get_rate_id ( string $context = 'view' ) : integer Get tax rate ID.
get_shipping_tax_total ( string $context = 'view' ) : string Get shipping_tax_total
get_tax_total ( string $context = 'view' ) : string Get tax_total
get_type ( ) : string Get order item type.
is_compound ( ) : boolean Is this a compound tax rate?
set_compound ( boolean $value ) Set compound
set_label ( string $value ) Set item name.
set_name ( string $value ) Set order item name.
set_rate ( integer $tax_rate_id ) Set properties based on passed in tax rate by ID.
set_rate_code ( string $value ) Set item name.
set_rate_id ( integer $value ) Set tax rate id.
set_shipping_tax_total ( string $value ) Set shipping_tax_total
set_tax_total ( string $value ) Set tax total.

Описание методов

get_compound() публичный Метод

Get compound.
public get_compound ( string $context = 'view' ) : boolean
$context string
Результат boolean

get_label() публичный Метод

Get label.
public get_label ( string $context = 'view' ) : string
$context string
Результат string

get_name() публичный Метод

Get rate code/name.
public get_name ( string $context = 'view' ) : string
$context string
Результат string

get_rate_code() публичный Метод

Get rate code/name.
public get_rate_code ( string $context = 'view' ) : string
$context string
Результат string

get_rate_id() публичный Метод

Get tax rate ID.
public get_rate_id ( string $context = 'view' ) : integer
$context string
Результат integer

get_shipping_tax_total() публичный Метод

Get shipping_tax_total
public get_shipping_tax_total ( string $context = 'view' ) : string
$context string
Результат string

get_tax_total() публичный Метод

Get tax_total
public get_tax_total ( string $context = 'view' ) : string
$context string
Результат string

get_type() публичный Метод

Get order item type.
public get_type ( ) : string
Результат string

is_compound() публичный Метод

Is this a compound tax rate?
public is_compound ( ) : boolean
Результат boolean

set_compound() публичный Метод

Set compound
public set_compound ( boolean $value )
$value boolean

set_label() публичный Метод

Set item name.
public set_label ( string $value )
$value string

set_name() публичный Метод

Set order item name.
public set_name ( string $value )
$value string

set_rate() публичный Метод

Set properties based on passed in tax rate by ID.
public set_rate ( integer $tax_rate_id )
$tax_rate_id integer

set_rate_code() публичный Метод

Set item name.
public set_rate_code ( string $value )
$value string

set_rate_id() публичный Метод

Set tax rate id.
public set_rate_id ( integer $value )
$value integer

set_shipping_tax_total() публичный Метод

Set shipping_tax_total
public set_shipping_tax_total ( string $value )
$value string

set_tax_total() публичный Метод

Set tax total.
public set_tax_total ( string $value )
$value string

Описание свойств

$extra_data защищенное свойство

Order Data array. This is the core order data exposed in APIs since 2.7.0.
С версии: 2.7.0
protected array $extra_data
Результат array