1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace EventEspresso\core\services\addon\api\v1; |
4
|
|
|
|
5
|
|
|
class LegacyModelApi |
6
|
|
|
{ |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @var string path to EE_* entity classes |
10
|
|
|
*/ |
11
|
|
|
private $entity_classes; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @var string path to EEM_* entity model classes |
15
|
|
|
*/ |
16
|
|
|
private $entity_models; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var string path to EEE_* entity class extensions |
20
|
|
|
*/ |
21
|
|
|
private $entity_class_extensions; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var string path to EEME_* entity model class extensions |
25
|
|
|
*/ |
26
|
|
|
private $entity_model_extensions; |
27
|
|
|
|
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @return string |
31
|
|
|
*/ |
32
|
|
|
public function entityClasses(): string |
33
|
|
|
{ |
34
|
|
|
return $this->entity_classes; |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @param string $entity_classes |
40
|
|
|
*/ |
41
|
|
|
public function addEntityClasses(string $entity_classes): void |
42
|
|
|
{ |
43
|
|
|
$this->entity_classes = $entity_classes; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @return string |
49
|
|
|
*/ |
50
|
|
|
public function entityModels(): string |
51
|
|
|
{ |
52
|
|
|
return $this->entity_models; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @param string $entity_models |
58
|
|
|
*/ |
59
|
|
|
public function addEntityModels(string $entity_models): void |
60
|
|
|
{ |
61
|
|
|
$this->entity_models = $entity_models; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @return string |
67
|
|
|
*/ |
68
|
|
|
public function entityClassExtensions(): string |
69
|
|
|
{ |
70
|
|
|
return $this->entity_class_extensions; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @param string $entity_class_extensions |
76
|
|
|
*/ |
77
|
|
|
public function addEntityClassExtensions(string $entity_class_extensions): void |
78
|
|
|
{ |
79
|
|
|
$this->entity_class_extensions = $entity_class_extensions; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @return string |
85
|
|
|
*/ |
86
|
|
|
public function entityModelExtensions(): string |
87
|
|
|
{ |
88
|
|
|
return $this->entity_model_extensions; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @param string $entity_model_extensions |
94
|
|
|
*/ |
95
|
|
|
public function addEntityModelExtensions(string $entity_model_extensions): void |
96
|
|
|
{ |
97
|
|
|
$this->entity_model_extensions = $entity_model_extensions; |
98
|
|
|
} |
99
|
|
|
} |
100
|
|
|
|