Automattic\WooCommerce\Api\Attributes
Metadata::__construct
Constructor.
Method of the class: Metadata{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->__construct( string $name, bool|int|float|string|null $value, );
- private string $name(required)
- .
- private bool|int|float|string|null $value(required)
.
(required)
- .
Metadata::__construct() Metadata:: construct code WC 10.9.1
public function __construct(
private string $name,
private bool|int|float|string|null $value,
) {
}