PHP Class WC_Mock_WC_Data

Inheritance: extends WC_Data
Afficher le fichier Open project: woocommerce/woocommerce Class Usage Examples

Méthodes publiques

Свойство Type Description
$data_store

Protected Properties

Свойство Type Description
$cache_group see WC_Data
$data Data array

Méthodes publiques

Méthode Description
__construct ( $id = '' ) Simple read.
get_bool_value ( string $context = 'view' ) : boolean Simple get bool value.
get_content ( string $context = 'view' ) : string Simple get content.
get_data ( ) : array Simple get data as array.
save ( ) Simple save.
set_bool_value ( $value ) : boolean Simple set bool value.
set_content ( string $content ) Simple set content.

Method Details

__construct() public méthode

Simple read.
public __construct ( $id = '' )

get_bool_value() public méthode

Simple get bool value.
public get_bool_value ( string $context = 'view' ) : boolean
$context string
Résultat boolean

get_content() public méthode

Simple get content.
public get_content ( string $context = 'view' ) : string
$context string
Résultat string

get_data() public méthode

Simple get data as array.
public get_data ( ) : array
Résultat array

save() public méthode

Simple save.
public save ( )

set_bool_value() public méthode

Simple set bool value.
public set_bool_value ( $value ) : boolean
Résultat boolean

set_content() public méthode

Simple set content.
public set_content ( string $content )
$content string

Property Details

$cache_group protected_oe property

see WC_Data
protected $cache_group

$data protected_oe property

Data array
protected $data

$data_store public_oe property

public $data_store