mirror of
https://github.com/friendica/friendica
synced 2025-04-28 22:24:22 +02:00
Fixup command argument
This commit is contained in:
parent
38f70cc55a
commit
7637ae1dcc
4 changed files with 29 additions and 22 deletions
|
@ -30,17 +30,4 @@ class Process extends BaseEntity
|
|||
$this->command = $command;
|
||||
$this->created = $created;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new Process with the given PID
|
||||
*
|
||||
* @param int $pid
|
||||
*
|
||||
* @return $this
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function withPid(int $pid): Process
|
||||
{
|
||||
return new static($pid, $this->command, new DateTime('now', new \DateTimeZone('URC')));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue