PluginProbe
YayMail – WooCommerce Email Customizer / trunk
YayMail – WooCommerce Email Customizer vtrunk
4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 3.4.2 3.4.3 All 55 releases
yaymail / src / Abstracts / BasePattern.php

BasePattern.php in YayMail – WooCommerce Email Customizer trunk, at src/Abstracts/BasePattern.php

46 lines 958 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace YayMail\Abstracts;
3
4 /**
5 * BasePattern Class
6 */
7 abstract class BasePattern {
8 protected $id = null;
9 public const TYPE = '';
10
11 protected $section = null;
12
13 protected $available = true;
14 protected $position = 10;
15 protected $name = '';
16 protected $elements = [];
17
18 public function get_data() {
19 return [
20 'id' => $this->id,
21 'type' => static::TYPE,
22 'section' => $this->section,
23 'available' => $this->available,
24 'position' => $this->position,
25 'elements' => $this->elements,
26 'name' => $this->name,
27 ];
28 }
29
30 public function get_type() {
31 return static::TYPE;
32 }
33
34 /**
35 * @return string
36 */
37 public function get_section() {
38 return $this->section;
39 }
40
41 public function get_raw_data() {
42 return $this->get_data();
43 }
44
45 }
46