mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
v3 base
This commit is contained in:
17
src/StaticPHP/Runtime/Executor/Executor.php
Normal file
17
src/StaticPHP/Runtime/Executor/Executor.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace StaticPHP\Runtime\Executor;
|
||||
|
||||
use StaticPHP\Package\LibraryPackage;
|
||||
|
||||
abstract class Executor
|
||||
{
|
||||
public function __construct(protected LibraryPackage $package) {}
|
||||
|
||||
public static function create(LibraryPackage $package): static
|
||||
{
|
||||
return new static($package);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user