modify plugin name
This commit is contained in:
+5
-3
@@ -88,6 +88,7 @@ class Target
|
|||||||
* @param string $method
|
* @param string $method
|
||||||
* @param string $annotation
|
* @param string $annotation
|
||||||
* @return mixed
|
* @return mixed
|
||||||
|
* @throws ReflectionException
|
||||||
*/
|
*/
|
||||||
public function getSpecify_annotation(string $method, string $annotation): mixed
|
public function getSpecify_annotation(string $method, string $annotation): mixed
|
||||||
{
|
{
|
||||||
@@ -100,15 +101,16 @@ class Target
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<string, ReflectionAttribute[]>
|
* @return array
|
||||||
|
* @throws ReflectionException
|
||||||
*/
|
*/
|
||||||
#[Pure] public function getMethodsAttribute(): array
|
#[Pure] public function getMethodsAttribute(): array
|
||||||
{
|
{
|
||||||
$methods = $this->target->getMethods();
|
$methods = $this->target->getMethods();
|
||||||
|
|
||||||
$array = [];
|
$array = [];
|
||||||
foreach ($methods as $key => $method) {
|
foreach ($methods as $method) {
|
||||||
$array[$key] = $this->getMethodAttribute($method);
|
$array[$method->getName()] = $this->getMethodAttribute($method->getName());
|
||||||
}
|
}
|
||||||
return $array;
|
return $array;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user