mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
21 lines
491 B
PHP
21 lines
491 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace SPC\builder\unix\executor;
|
||
|
|
|
||
|
|
use SPC\builder\freebsd\library\BSDLibraryBase;
|
||
|
|
use SPC\builder\LibraryBase;
|
||
|
|
use SPC\builder\linux\library\LinuxLibraryBase;
|
||
|
|
use SPC\builder\macos\library\MacOSLibraryBase;
|
||
|
|
|
||
|
|
abstract class Executor
|
||
|
|
{
|
||
|
|
public function __construct(protected BSDLibraryBase|LinuxLibraryBase|MacOSLibraryBase $library) {}
|
||
|
|
|
||
|
|
public static function create(LibraryBase $library): static
|
||
|
|
{
|
||
|
|
return new static($library);
|
||
|
|
}
|
||
|
|
}
|