refactor!: clean up stdio interface

with an interface no less!
This commit is contained in:
2026-02-11 22:03:44 +01:00
parent ad740afb5f
commit 3a5cad161d
10 changed files with 159 additions and 114 deletions

View File

@@ -12,12 +12,12 @@ namespace Nih\CommandBuilder;
* their exit status is exposed through the status method, or the wait method of
* a Child process.
*/
final class ExitStatus
final readonly class ExitStatus
{
public function __construct(
private readonly ?int $code,
private readonly ?int $signal = null,
private readonly ?int $stoppedSignal = null,
private ?int $code,
private ?int $signal = null,
private ?int $stoppedSignal = null,
) {
}