Prepare for skeleton

This commit is contained in:
crazywhalecc
2025-12-15 17:00:20 +08:00
parent c1c31a730b
commit acd0e2b23a
10 changed files with 447 additions and 18 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace StaticPHP\Skeleton;
use StaticPHP\Exception\ValidationException;
use StaticPHP\Runtime\Executor\Executor;
class ExecutorGenerator
{
public function __construct(protected string $class)
{
if (!is_a($class, Executor::class, true)) {
throw new ValidationException('Executor class must extend ' . Executor::class);
}
}
}