-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.php
More file actions
94 lines (78 loc) · 1.55 KB
/
Config.php
File metadata and controls
94 lines (78 loc) · 1.55 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
93
94
<?php
namespace Yonna\Log;
class Config
{
/**
* 日志文件目录
* @var string
*/
private static $dir = null;
/**
* 日志文件目录名
* @var string
*/
private static $file = 'yonna_log';
/**
* 文件日志的过期天数
* @var int
*/
private static $file_expire_day = 0;
/**
* @return string
*/
public static function getDir(): string
{
return self::$dir;
}
/**
* @param string $dir
*/
public static function setDir(string $dir): void
{
self::$dir = $dir;
}
/**
* @return string
*/
public static function getFile(): string
{
return self::$file;
}
/**
* @param string $file
*/
public static function setFile(string $file): void
{
self::$file = $file;
}
/**
* @return int
*/
public static function getFileExpireDay(): int
{
return self::$file_expire_day;
}
/**
* @param int $file_expire_day
*/
public static function setFileExpireDay(int $file_expire_day): void
{
self::$file_expire_day = $file_expire_day;
}
//===================================================================
private static $database = null;
/**
* @return null
*/
public static function getDatabase()
{
return self::$database;
}
/**
* @param null $database
*/
public static function setDatabase($database): void
{
self::$database = $database;
}
}