-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathConfig.php
135 lines (115 loc) · 2.5 KB
/
Config.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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
namespace EasySwoole\Component\Process;
use EasySwoole\Spl\SplBean;
class Config extends SplBean
{
const PIPE_TYPE_NONE = 0;
const PIPE_TYPE_SOCK_STREAM = 1;
const PIPE_TYPE_SOCK_DGRAM = 2;
protected $processName;
/** @var string */
protected $processGroup = null;
protected $arg;
protected $redirectStdinStdout = false;
protected $pipeType = self::PIPE_TYPE_SOCK_DGRAM;
protected $enableCoroutine = true;
protected $maxExitWaitTime = 3;
/**
* @return mixed
*/
public function getProcessName()
{
return $this->processName;
}
/**
* @param mixed $processName
*/
public function setProcessName($processName): void
{
$this->processName = $processName;
}
/**
* @return mixed
*/
public function getArg()
{
return $this->arg;
}
/**
* @param mixed $arg
*/
public function setArg($arg): void
{
$this->arg = $arg;
}
/**
* @return bool
*/
public function isRedirectStdinStdout(): bool
{
return $this->redirectStdinStdout;
}
/**
* @param bool $redirectStdinStdout
*/
public function setRedirectStdinStdout(bool $redirectStdinStdout): void
{
$this->redirectStdinStdout = $redirectStdinStdout;
}
/**
* @return int
*/
public function getPipeType(): int
{
return $this->pipeType;
}
/**
* @param int $pipeType
*/
public function setPipeType(int $pipeType): void
{
$this->pipeType = $pipeType;
}
/**
* @return bool
*/
public function isEnableCoroutine(): bool
{
return $this->enableCoroutine;
}
/**
* @param bool $enableCoroutine
*/
public function setEnableCoroutine(bool $enableCoroutine): void
{
$this->enableCoroutine = $enableCoroutine;
}
/**
* @return int
*/
public function getMaxExitWaitTime(): int
{
return $this->maxExitWaitTime;
}
/**
* @param int $maxExitWaitTime
*/
public function setMaxExitWaitTime(int $maxExitWaitTime): void
{
$this->maxExitWaitTime = $maxExitWaitTime;
}
/**
* @return string
*/
public function getProcessGroup(): ?string
{
return $this->processGroup;
}
/**
* @param string $processGroup
*/
public function setProcessGroup(string $processGroup): void
{
$this->processGroup = $processGroup;
}
}