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.
52 lines
1.0 KiB
52 lines
1.0 KiB
<?php
|
|
/**
|
|
* This file is part of Swoole-Compiler(AOT).
|
|
*
|
|
* @link https://www.swoole.com/
|
|
* @contact service@swoole.com
|
|
*/
|
|
|
|
namespace PhpAot\Php;
|
|
|
|
class Symbol
|
|
{
|
|
public static function getStaticProperty(): string
|
|
{
|
|
return 'php::getStaticProperty';
|
|
}
|
|
|
|
public static function setStaticProperty(): string
|
|
{
|
|
return 'php::setStaticProperty';
|
|
}
|
|
|
|
public static function instanceOf(): string
|
|
{
|
|
return 'php::instanceOf';
|
|
}
|
|
|
|
public static function concat(): string
|
|
{
|
|
return 'php::concat';
|
|
}
|
|
|
|
public static function getCalledCe(): string
|
|
{
|
|
return CompilerBase::PREFIX . 'get_called_ce(this_)';
|
|
}
|
|
|
|
public static function getCalledClass(): string
|
|
{
|
|
return CompilerBase::PREFIX . 'get_called_class(this_)';
|
|
}
|
|
|
|
public static function constant(): string
|
|
{
|
|
return 'php::constant';
|
|
}
|
|
|
|
public static function getClassEntrySafe(): string
|
|
{
|
|
return 'php::getClassEntrySafe';
|
|
}
|
|
}
|
|
|