FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-process-manager/src/Process.php at master · lizardmedia/php-process-manager · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Apr 15, 2020. It is now read-only.
lizardmedia
/
php-process-manager
Public archive
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
php-process-manager
/
src
/
Process.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
46 lines (39 loc) · 841 Bytes
Breadcrumbs
php-process-manager
/
src
/
Process.php
Copy path
File metadata and controls
46 lines (39 loc) · 841 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<?php
namespace
Phppm
;
use
Symfony
\
Component
\
Console
\
Output
\
OutputInterface
;
abstract
class
Process
implements
ProcessInterface
{
/**
* @var OutputInterface
*/
protected
$
output
;
/**
* @var int
*/
protected
$
pid
;
/**
* Process constructor.
* @param OutputInterface $output
*/
public
function
__construct
(
OutputInterface
$
output
,
$
worker
)
{
$
this
->
output
=
$
output
;
$
this
->
pid
=
getmypid
();
$
this
->
worker
=
$
worker
;
}
/**
* @return string
*/
protected
function
getFormattedTime
() :
string
{
$
now
= \DateTime::
createFromFormat
(
'
U.u
'
,
microtime
(
true
));
return
$
now
->
format
(
"
Y-d-m H:i:s.u
"
);
}
/**
* @return int
*/
public
function
getPid
() :
int
{
return
$
this
->
pid
;
}
}
Back
|
FazBrowse Home
|
New Git URL