This commit is contained in:
as2252258@163.com
2021-09-04 17:06:05 +08:00
parent 8f919ffa1b
commit 7d26617092
6 changed files with 27 additions and 30 deletions
+15 -1
View File
@@ -151,6 +151,20 @@ class NoteManager
}
/**
* @param \ReflectionClass $reflect
* @return \ReflectionMethod|null
*/
public static function resolveTarget(ReflectionClass $reflect): ?\ReflectionMethod
{
NoteManager::setPropertyNote($reflect);
NoteManager::setTargetNote($reflect);
NoteManager::setMethodNote($reflect);
return $reflect->getConstructor();
}
/**
* @param ReflectionClass $class
*/
@@ -197,7 +211,7 @@ class NoteManager
* @param string|null $method
* @return array
*/
public static function getMethodByAnnotation(string $attribute, string $class, string $method = null): mixed
public static function getSpecify_annotation(string $attribute, string $class, string $method = null): mixed
{
$class = self::getAttributeTrees($attribute, $class);
if (empty($class) || !isset($class['method']) || empty($method)) {