Returns the Pid (process identifier), if applicable.
int|null The process id if running, null otherwise
public function getPid() : ?int { return $this->isRunning() ? $this->processInformation['pid'] : null; }