-
Notifications
You must be signed in to change notification settings - Fork 17
/
AccountHandler.php
42 lines (38 loc) · 1.08 KB
/
AccountHandler.php
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
<?php
/**
* The handler of Account event module in alpha application.
*
* @author wgrape <https://github.com/WGrape>
* @license https://github.com/WGrape/esupdater/blob/master/LICENSE MIT Licence
*/
namespace app\alpha\account;
class AccountHandler
{
/**
* The event callback when table of Account trigger insert event.
* @param array $parsedCanalData
* @return bool
*/
public function onInsert(array $parsedCanalData): bool
{
return (new AccountService())->doInsert($parsedCanalData);
}
/**
* The event callback when table of Account trigger update event.
* @param array $parsedCanalData
* @return bool
*/
public function onUpdate(array $parsedCanalData): bool
{
return (new AccountService())->doUpdate($parsedCanalData);
}
/**
* The event callback when table of Account trigger delete event.
* @param array $parsedCanalData
* @return bool
*/
public function onDelete(array $parsedCanalData): bool
{
return (new AccountService())->doDelete($parsedCanalData);
}
}