refactor(php): 将PHP实体类移动到Entity子命名空间

- 将ClassDef.php移至src/Php/Entity/ClassDef.php并更新命名空间
- 将ClassLikeDef.php移至src/Php/Entity/ClassLikeDef.php并更新命名空间
- 将ConstantDef.php移至src/Php/Entity/ConstantDef.php并更新命名空间
- 将FunctionDef.php移至src/Php/Entity/FunctionDef.php并更新命名空间
- 将InterfaceDef.php移至src/Php/Entity/InterfaceDef.php并更新命名空间
- 将MethodDef.php移至src/Php/Entity/MethodDef.php并更新命名空间
- 将PropertyDef.php移至src/Php/Entity/PropertyDef.php并更新命名空间
- 更新CompilerBase.php中的实体类引用路径
- 更新MagicMethodDetector.php中的MethodDef引用路径
- 更新Translator.php中的所有实体类引用路径
pull/1/head
韩天峰 7 months ago
parent 67ace98bb6
commit 1d6e7522ab
  1. 5
      src/Php/CompilerBase.php
  2. 2
      src/Php/Entity/ClassDef.php
  3. 2
      src/Php/Entity/ClassLikeDef.php
  4. 2
      src/Php/Entity/ConstantDef.php
  5. 4
      src/Php/Entity/FunctionDef.php
  6. 2
      src/Php/Entity/InterfaceDef.php
  7. 2
      src/Php/Entity/MethodDef.php
  8. 2
      src/Php/Entity/PropertyDef.php
  9. 1
      src/Php/MagicMethodDetector.php
  10. 7
      src/Php/Translator.php

@ -9,6 +9,11 @@
namespace PhpAot\Php;
use League\CLImate\CLImate;
use PhpAot\Php\Entity\ClassDef;
use PhpAot\Php\Entity\FunctionDef;
use PhpAot\Php\Entity\InterfaceDef;
use PhpAot\Php\Entity\MethodDef;
use PhpAot\Php\Entity\PropertyDef;
use PhpAot\Php\Exception\Redo;
use PhpAot\Php\Exception\Skip;
use PhpParser\Modifiers;

@ -6,7 +6,7 @@
* @contact service@swoole.com
*/
namespace PhpAot\Php;
namespace PhpAot\Php\Entity;
class ClassDef extends ClassLikeDef
{

@ -6,7 +6,7 @@
* @contact service@swoole.com
*/
namespace PhpAot\Php;
namespace PhpAot\Php\Entity;
class ClassLikeDef
{

@ -6,7 +6,7 @@
* @contact service@swoole.com
*/
namespace PhpAot\Php;
namespace PhpAot\Php\Entity;
class ConstantDef
{

@ -6,7 +6,9 @@
* @contact service@swoole.com
*/
namespace PhpAot\Php;
namespace PhpAot\Php\Entity;
use PhpAot\Php\ArgInfo;
class FunctionDef
{

@ -6,7 +6,7 @@
* @contact service@swoole.com
*/
namespace PhpAot\Php;
namespace PhpAot\Php\Entity;
class InterfaceDef extends ClassLikeDef
{

@ -6,7 +6,7 @@
* @contact service@swoole.com
*/
namespace PhpAot\Php;
namespace PhpAot\Php\Entity;
class MethodDef
{

@ -6,7 +6,7 @@
* @contact service@swoole.com
*/
namespace PhpAot\Php;
namespace PhpAot\Php\Entity;
use PhpParser\Modifiers;

@ -8,6 +8,7 @@
namespace PhpAot\Php;
use PhpAot\Php\Entity\MethodDef;
use PhpParser\NodeAbstract;
trait MagicMethodDetector

@ -9,6 +9,13 @@
namespace PhpAot\Php;
use MJS\TopSort\Implementations\StringSort;
use PhpAot\Php\Entity\ClassDef;
use PhpAot\Php\Entity\ClassLikeDef;
use PhpAot\Php\Entity\ConstantDef;
use PhpAot\Php\Entity\FunctionDef;
use PhpAot\Php\Entity\InterfaceDef;
use PhpAot\Php\Entity\MethodDef;
use PhpAot\Php\Entity\PropertyDef;
use PhpAot\Php\Exception\Redo;
use PhpParser\Modifiers;
use PhpParser\Node;

Loading…
Cancel
Save