Automattic\WooCommerce\Blocks\Patterns
PTKClient::__construct
Constructor.
Method of the class: PTKClient{}
No Hooks.
Returns
null. Nothing (null).
Usage
$PTKClient = new PTKClient(); $PTKClient->__construct();
PTKClient::__construct() PTKClient:: construct code WC 10.3.6
public function __construct() {
$this->schema = [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ID' => [
'type' => 'integer',
'required' => true,
],
'site_id' => [
'type' => 'integer',
'required' => true,
],
'title' => [
'type' => 'string',
'required' => true,
],
'name' => [
'type' => 'string',
'required' => true,
],
'html' => [
'type' => 'string',
'required' => true,
],
'categories' => [
'type' => 'object',
'additionalProperties' => [
'type' => 'object',
'properties' => [
'slug' => [
'type' => 'string',
'required' => true,
],
'title' => [
'type' => 'string',
'required' => true,
],
'description' => [
'type' => 'string',
'required' => true,
],
],
],
],
],
],
];
}