WC_Order_Refund::get_type PHP Method

get_type() public method

Get internal type (post type.)
public get_type ( ) : string
return string
    public function get_type()
    {
        return 'shop_order_refund';
    }

Usage Example

コード例 #1
0
ファイル: refunds.php プロジェクト: pelmered/woocommerce
 /**
  * Test: get_type
  */
 function test_get_type()
 {
     $object = new WC_Order_Refund();
     $this->assertEquals('shop_order_refund', $object->get_type());
 }