PluginProbe
StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More / 2.2.0
StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More v2.2.0
2.3.0 2.2.0 2.1.1 2.1.0 2.0.0 1.10.0 1.9.1 1.9.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 All 59 releases
storeengine / includes / classes / data / attribute-data.php

attribute-data.php in StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More 2.2.0, at includes/classes/data/attribute-data.php

30 lines 717 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace StoreEngine\Classes\Data;
4
5 class AttributeData {
6
7 public int $term_id;
8 public int $term_taxonomy_id;
9 public string $name;
10 public string $slug;
11 public string $description;
12 public string $taxonomy;
13 public int $count;
14 public int $term_order;
15
16 public function set_data( object $data ): self {
17 $this->term_id = (int) $data->term_id;
18 $this->term_taxonomy_id = $data->term_taxonomy_id;
19 $this->name = $data->name;
20 $this->slug = $data->slug;
21 $this->description = $data->description;
22 $this->taxonomy = $data->taxonomy;
23 $this->count = (int) $data->count;
24 $this->term_order = (int) $data->term_order;
25
26 return $this;
27 }
28
29 }
30