added Process::getLastOutputTime()
method
This commit is contained in:
parent
a9ace36389
commit
0e7bf6fb52
@ -4,7 +4,8 @@ CHANGELOG
|
||||
4.4.0
|
||||
-----
|
||||
|
||||
* deprecated `Process::inheritEnvironmentVariables()`: env variables are always inherited.
|
||||
* deprecated `Process::inheritEnvironmentVariables()`: env variables are always inherited.
|
||||
* added `Process::getLastOutputTime()` method
|
||||
|
||||
4.2.0
|
||||
-----
|
||||
|
@ -954,6 +954,16 @@ class Process implements \IteratorAggregate
|
||||
fseek($this->stderr, $this->incrementalErrorOutputOffset);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the last output time in seconds
|
||||
*
|
||||
* @return float|null The last output time in seconds or null if it isn't started
|
||||
*/
|
||||
public function getLastOutputTime(): ?float
|
||||
{
|
||||
return $this->lastOutputTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the command line to be executed.
|
||||
*
|
||||
|
Reference in New Issue
Block a user