Automattic\WooCommerce\Blocks\Patterns
PTKClient::__construct
Constructor.
Метод класса: PTKClient{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$PTKClient = new PTKClient(); $PTKClient->__construct();
Код PTKClient::__construct() PTKClient:: construct WC 11.0.1
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,
],
],
],
],
],
],
];
}