*/ private array $registeredSignals = []; /** @var array */ private array $signalMethodMap = []; private static ?bool $isPcntlAvailable = null; private static ?bool $isPosixAvailable = null; protected function isPcntlAvailable(): bool { } protected function isPosixAvailable(): bool { } /** * @param list $signals * @param array $methodMap */ protected function registerSignals(array $signals = [], array $methodMap = []): void { } protected function handleSignal(int $signal): void { } protected function shouldTerminate(): bool { } protected function isRunning(): bool { } protected function requestTermination(): void { } protected function resetState(): void { } /** * @template TReturn * @param Closure():TReturn $operation * @return TReturn */ protected function withSignalsBlocked(Closure $operation) { } protected function blockSignals(): void { } protected function unblockSignals(): void { } protected function signalsBlocked(): bool { } protected function mapSignal(int $signal, string $method): void { } protected function getSignalName(int $signal): string { } protected function unregisterSignals(): void { } protected function hasSignals(): bool { } /** * @return list */ protected function getSignals(): array { } /** * @return array{ * pid: int, * running: bool, * pcntl_available: bool, * registered_signals: int, * registered_signals_names: array, * signals_blocked: bool, * explicit_mappings: int, * memory_usage_mb: float, * memory_peak_mb: float, * session_id?: false|int, * process_group?: false|int, * has_controlling_terminal?: bool * } */ protected function getProcessState(): array { } }