This commit is contained in:
2020-08-31 23:18:50 +08:00
parent 8ccfe00b0f
commit 6d9543098d
2 changed files with 43 additions and 25 deletions
+13
View File
@@ -34,6 +34,19 @@ abstract class BaseAnnotation extends Component
}
/**
* @param string $class
* @return string[]
* @throws ReflectionException
*/
public function getAnnotation(string $class)
{
$reflect = Snowflake::getDi()->getReflect($class);
return $this->getPrivates($reflect);
}
/**
* @param ReflectionClass $reflect
* @param array $rules