PHP 클래스 WC_Order_Item_Fee

부터: 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_name ( string $context = 'view' ) : string Get order item name.
get_tax_class ( string $context = 'view' ) : string Get tax class.
get_tax_status ( string $context = 'view' ) : string Get tax status.
get_taxes ( string $context = 'view' ) : array Get fee taxes.
get_total ( string $context = 'view' ) : string Get total fee.
get_total_tax ( string $context = 'view' ) : string Get total tax.
get_type ( ) : string Get order item type.
offsetExists ( string $offset ) : boolean offsetExists for ArrayAccess
offsetGet ( string $offset ) : mixed offsetGet for ArrayAccess/Backwards compatibility.
offsetSet ( string $offset, mixed $value ) offsetSet for ArrayAccess/Backwards compatibility.
set_tax_class ( string $value ) Set tax class.
set_tax_status ( string $value ) Set tax_status.
set_taxes ( array $raw_tax_data ) Set taxes.
set_total ( string $value ) Set total.

보호된 메소드들

메소드 설명
set_total_tax ( string $value ) Set total tax.

메소드 상세

get_name() 공개 메소드

Get order item name.
public get_name ( string $context = 'view' ) : string
$context string
리턴 string

get_tax_class() 공개 메소드

Get tax class.
public get_tax_class ( string $context = 'view' ) : string
$context string
리턴 string

get_tax_status() 공개 메소드

Get tax status.
public get_tax_status ( string $context = 'view' ) : string
$context string
리턴 string

get_taxes() 공개 메소드

Get fee taxes.
public get_taxes ( string $context = 'view' ) : array
$context string
리턴 array

get_total() 공개 메소드

Get total fee.
public get_total ( string $context = 'view' ) : string
$context string
리턴 string

get_total_tax() 공개 메소드

Get total tax.
public get_total_tax ( string $context = 'view' ) : string
$context string
리턴 string

get_type() 공개 메소드

Get order item type.
public get_type ( ) : string
리턴 string

offsetExists() 공개 메소드

offsetExists for ArrayAccess
public offsetExists ( string $offset ) : boolean
$offset string
리턴 boolean

offsetGet() 공개 메소드

offsetGet for ArrayAccess/Backwards compatibility.
사용 중단: Add deprecation notices in future release.
public offsetGet ( string $offset ) : mixed
$offset string
리턴 mixed

offsetSet() 공개 메소드

offsetSet for ArrayAccess/Backwards compatibility.
사용 중단: Add deprecation notices in future release.
public offsetSet ( string $offset, mixed $value )
$offset string
$value mixed

set_tax_class() 공개 메소드

Set tax class.
public set_tax_class ( string $value )
$value string

set_tax_status() 공개 메소드

Set tax_status.
public set_tax_status ( string $value )
$value string

set_taxes() 공개 메소드

This is an array of tax ID keys with total amount values.
public set_taxes ( array $raw_tax_data )
$raw_tax_data array

set_total() 공개 메소드

Set total.
public set_total ( string $value )
$value string

set_total_tax() 보호된 메소드

Set total tax.
protected set_total_tax ( 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