PHP 클래스 WC_Order_Item_Tax

부터: 2.7.0
저자: WooThemes
상속: extends WC_Order_Item
파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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