PHP Class WC_Mock_WC_Data_Store

Inheritance: extends WC_Data_Store_WP, implements WC_Object_Data_Store_Interface
Datei anzeigen Open project: woocommerce/woocommerce

Protected Properties

Property Type Description
$internal_meta_keys
$meta_type
$object_id_field_for_meta

Public Methods

Method Description
create ( &$object )
delete ( &$object, $args = [] ) Simple delete.
read ( &$object ) Simple read.
set_meta_type ( string $meta_type ) Set meta type (user or post).
set_object_id_field ( string $object_id_field ) Set object ID field dynamically for testing.
update ( &$object ) Simple update.

Method Details

create() public method

public create ( &$object )

delete() public method

Simple delete.
public delete ( &$object, $args = [] )

read() public method

Simple read.
public read ( &$object )

set_meta_type() public method

Set meta type (user or post).
public set_meta_type ( string $meta_type )
$meta_type string

set_object_id_field() public method

Set object ID field dynamically for testing.
public set_object_id_field ( string $object_id_field )
$object_id_field string

update() public method

Simple update.
public update ( &$object )

Property Details

$internal_meta_keys protected_oe property

protected $internal_meta_keys

$meta_type protected_oe property

protected $meta_type

$object_id_field_for_meta protected_oe property

protected $object_id_field_for_meta