TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
502 B
23 lines
502 B
<?php
|
|
/**
|
|
* This file is part of Swoole-Compiler(AOT).
|
|
*
|
|
* @link https://www.swoole.com/
|
|
* @contact service@swoole.com
|
|
*/
|
|
|
|
namespace PhpAot\Php;
|
|
|
|
class CompilerTest extends Translator
|
|
{
|
|
protected static ?self $instance = null;
|
|
|
|
public static function getInstance(string $rootPath = ''): CompilerTest
|
|
{
|
|
if (!self::$instance) {
|
|
self::$instance = new self($rootPath);
|
|
self::$instance->forTest = true;
|
|
}
|
|
return self::$instance;
|
|
}
|
|
}
|
|
|