1 | <?php |
||
7 | class AddonApi extends AddonApiVersion |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * @var DataMigrationApi |
||
12 | */ |
||
13 | private $data_migration_api; |
||
14 | |||
15 | /** |
||
16 | * @var LegacyModelApi |
||
17 | */ |
||
18 | private $legacy_model_api; |
||
19 | |||
20 | |||
21 | /** |
||
22 | * Bootstrap constructor. |
||
23 | * |
||
24 | * @param string $slug |
||
25 | * @param string $name |
||
26 | * @param string $namespace |
||
27 | * @param string $version |
||
28 | * @param string $min_core_version |
||
29 | * @param string $main_file |
||
30 | */ |
||
31 | public function __construct( |
||
51 | |||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function dataMigrationScripts(): string |
||
60 | |||
61 | |||
62 | /** |
||
63 | * @param string $data_migration_scripts |
||
64 | */ |
||
65 | public function addDataMigrationScripts(string $data_migration_scripts): void |
||
69 | |||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function entityClasses(): string |
||
78 | |||
79 | |||
80 | /** |
||
81 | * @param string $entity_classes |
||
82 | */ |
||
83 | public function addEntityClasses(string $entity_classes): void |
||
87 | |||
88 | |||
89 | /** |
||
90 | * @return string |
||
91 | */ |
||
92 | public function entityModels(): string |
||
96 | |||
97 | |||
98 | /** |
||
99 | * @param string $entity_models |
||
100 | */ |
||
101 | public function addEntityModels(string $entity_models): void |
||
105 | |||
106 | |||
107 | /** |
||
108 | * @return string |
||
109 | */ |
||
110 | public function entityClassExtensions(): string |
||
114 | |||
115 | |||
116 | /** |
||
117 | * @param string $entity_class_extensions |
||
118 | */ |
||
119 | public function addEntityClassExtensions(string $entity_class_extensions): void |
||
123 | |||
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | public function entityModelExtensions(): string |
||
132 | |||
133 | |||
134 | /** |
||
135 | * @param string $entity_model_extensions |
||
136 | */ |
||
137 | public function addEntityModelExtensions(string $entity_model_extensions): void |
||
141 | } |
||
142 |