This commit is contained in:
2021-08-02 18:12:32 +08:00
parent 3fb79847ce
commit f1a7928192
6 changed files with 97 additions and 39 deletions
+11
View File
@@ -70,6 +70,17 @@ trait Attributes
}
/**
* @param string $class
* @param string $method
* @return bool
*/
public function hasMethod(string $class, string $method): bool
{
return isset($this->_classMethod[$class]) && isset($this->_classMethod[$class][$method]);
}
/**
* @param ReflectionClass $class
* @return array