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