Fixup command argument

This commit is contained in:
Philipp 2021-10-31 14:31:02 +01:00
parent 38f70cc55a
commit 7637ae1dcc
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 29 additions and 22 deletions

View file

@ -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')));
}
}