This commit is contained in:
xl
2024-06-20 17:17:50 +08:00
parent 684c5a3ebb
commit e9367ec735
+11 -1
View File
@@ -66,6 +66,16 @@ trait TraitServer
} }
/**
* @param string $name
* @return Process|null
*/
public function getProcess(string $name): ?Process
{
return $this->_process[$name] ?? null;
}
/** /**
* @return void * @return void
* @throws * @throws
@@ -116,7 +126,7 @@ trait TraitServer
/** /**
* @return array * @return array
*/ */
public function getProcess(): array public function getProcesses(): array
{ {
return $this->_process; return $this->_process;
} }