-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleModuleService.php
More file actions
92 lines (74 loc) · 1.87 KB
/
Copy pathExampleModuleService.php
File metadata and controls
92 lines (74 loc) · 1.87 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
namespace hmcswModule\ExampleModule\src;
use hmcsw\exception\ServiceException;
use hmcsw\objects\user\teams\service\Service;
use hmcsw\objects\user\teams\service\ServiceRepository;
use hmcsw\objects\user\teams\Team;
use hmcsw\service\module\ModuleServiceRepository;
class ExampleModuleService implements ServiceRepository
{
protected Service $service;
protected ModuleServiceRepository $module;
protected array $get = ["success" => false];
public function __construct(Service $service, ModuleServiceRepository $module)
{
$this->service = $service;
$this->module = $module;
}
public function getService(): Service
{
return $this->service;
}
public function getModule(): ModuleServiceRepository
{
return $this->module;
}
public function onCreate(bool $reinstall = false): array
{
return [];
}
public function onDelete(bool $reinstall = false): void
{
// TODO: Implement onDelete() method.
}
public function onEnable(): void
{
// TODO: Implement onEnable() method.
}
public function onDisable(): void
{
// TODO: Implement onDisable() method.
}
public function onTerminate(): void
{
// TODO: Implement onTerminate() method.
}
public function onTerminateInstant(): void
{
// TODO: Implement onTerminateInstant() method.
}
public function onWithdrawTerminate(): void
{
// TODO: Implement onWithdrawTerminate() method.
}
public function onExtend(int $time): void
{
// TODO: Implement onExtend() method.
}
public function onLogin(string $key): array
{
throw new ServiceException("Not implemented");
}
public function onSetName(string $name): void
{
// TODO: Implement onSetName() method.
}
public function getData(): array
{
return $this->get;
}
public function onSetTeam(Team $newTeam): void
{
// TODO: Implement onSetTeam() method.
}
}