This commit is contained in:
2021-03-03 20:06:32 +08:00
parent a65d9f6ac1
commit 301a283833
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -26,12 +26,13 @@ class Annotation extends Component
/**
* @param string $className
* @param string $method
* @return array 根据类名获取注解
* 根据类名获取注解
*/
public function getMethods(string $className): array
public function getMethods(string $className, string $method = ''): array
{
return $this->_loader->getMethod($className);
return $this->_loader->getMethod($className, $method);
}