first commit

This commit is contained in:
编码猿
2024-09-27 01:06:04 +08:00
commit cbed24c40d
205 changed files with 8732 additions and 0 deletions

24
Swoft_BackEndApi/bin/test.php Executable file
View File

@@ -0,0 +1,24 @@
<?php
trait Tr
{
public function traitMethod()
{
}
}
class A
{
use Tr;
public function method()
{
}
}
$a = new ReflectionClass(A::class);
foreach ($a->getTraits() as $traitClass){
var_dump($traitClass->getMethods());
}