1 | <?php |
||
11 | class WC_Order_Item_Tax extends WC_Order_Item { |
||
12 | |||
13 | /** |
||
14 | * Data properties of this order item object. |
||
15 | * @since 2.6.0 |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $_data = array( |
||
19 | 'order_id' => 0, |
||
20 | 'order_item_id' => 0, |
||
21 | 'rate_code' => '', |
||
22 | 'rate_id' => 0, |
||
23 | 'label' => '', |
||
24 | 'compound' => false, |
||
25 | 'tax_total' => 0, |
||
26 | 'shipping_tax_total' => 0 |
||
27 | ); |
||
28 | |||
29 | /** |
||
30 | * Read/populate data properties specific to this order item. |
||
31 | */ |
||
32 | public function read( $id ) { |
||
42 | |||
43 | /** |
||
44 | * Save properties specific to this order item. |
||
45 | */ |
||
46 | public function save() { |
||
56 | |||
57 | /** |
||
58 | * Internal meta keys we don't want exposed as part of meta_data. |
||
59 | * @return array() |
||
60 | */ |
||
61 | protected function get_internal_meta_keys() { |
||
64 | |||
65 | /* |
||
66 | |-------------------------------------------------------------------------- |
||
67 | | Setters |
||
68 | |-------------------------------------------------------------------------- |
||
69 | */ |
||
70 | |||
71 | /** |
||
72 | * Set order item name. |
||
73 | * @param string $value |
||
74 | */ |
||
75 | public function set_name( $value ) { |
||
78 | |||
79 | /** |
||
80 | * Set item name. |
||
81 | * @param string $value |
||
82 | */ |
||
83 | public function set_rate_code( $value ) { |
||
86 | |||
87 | /** |
||
88 | * Set tax rate id. |
||
89 | * @param int $value |
||
90 | */ |
||
91 | public function set_rate_id( $value ) { |
||
94 | |||
95 | /** |
||
96 | * Set tax_amount. |
||
97 | * @param string $value |
||
98 | */ |
||
99 | public function set_tax_amount( $value ) { |
||
102 | |||
103 | /** |
||
104 | * Set shipping_tax_amount |
||
105 | * @param string $value |
||
106 | */ |
||
107 | public function set_shipping_tax_amount( $value ) { |
||
110 | |||
111 | /** |
||
112 | * Set compound |
||
113 | * @param bool $value |
||
114 | */ |
||
115 | public function set_compound( $value ) { |
||
118 | |||
119 | /* |
||
120 | |-------------------------------------------------------------------------- |
||
121 | | Getters |
||
122 | |-------------------------------------------------------------------------- |
||
123 | */ |
||
124 | |||
125 | /** |
||
126 | * Get order item type. |
||
127 | * @return string |
||
128 | */ |
||
129 | public function get_type() { |
||
132 | |||
133 | /** |
||
134 | * Get fee name. |
||
135 | * @return string |
||
136 | */ |
||
137 | public function get_rate_code() { |
||
140 | |||
141 | /** |
||
142 | * Get tax rate ID. |
||
143 | * @return int |
||
144 | */ |
||
145 | public function get_rate_id() { |
||
148 | |||
149 | /** |
||
150 | * Get tax_amount |
||
151 | * @return string |
||
152 | */ |
||
153 | public function get_tax_amount() { |
||
156 | |||
157 | /** |
||
158 | * Get shipping_tax_amount |
||
159 | * @return string |
||
160 | */ |
||
161 | public function get_shipping_tax_amount() { |
||
164 | |||
165 | /** |
||
166 | * Get compound. |
||
167 | * @return bool |
||
168 | */ |
||
169 | public function get_compound() { |
||
172 | } |
||
173 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.