-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetting.php
More file actions
55 lines (42 loc) · 888 Bytes
/
Setting.php
File metadata and controls
55 lines (42 loc) · 888 Bytes
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
<?php
namespace iry\queue;
abstract class Setting implements SettingInterface
{
/**
* @inheritDoc
* @return string
*/
abstract function storage();
/**
* @inheritDoc
* @return string
*/
abstract function tempPath();
/**
* @inheritDoc
*/
public function i18n(){
return 'en-US';
}
/**
* @param string $name 任务名称
* @param Client $client 对象
* @return bool false 阻止创建
*/
function beforeCreate($name,$client){
return true;
}
/**
* @param string $id
*/
function afterCreate($id){
}
/**
* 为了版本通用 ::cls() 代替 ::CLASS
* 5.6之前不支持::CLASS
* @return string
*/
static function cls(){
return get_called_class();
}
}