This commit is contained in:
2021-07-12 17:17:36 +08:00
parent f2083f1eaf
commit 857ec53870
20 changed files with 384 additions and 346 deletions
+9 -6
View File
@@ -5,6 +5,7 @@ namespace Annotation;
use Exception;
use ReflectionException;
use ReflectionProperty;
use Snowflake\Snowflake;
@@ -26,12 +27,14 @@ use Snowflake\Snowflake;
}
/**
* @param array $handler
* @return mixed
* @throws Exception
*/
public function execute(mixed $class, mixed $method = null): mixed
/**
* @param mixed $class
* @param mixed|null $method
* @return bool
* @throws ReflectionException
* @throws Exception
*/
public function execute(mixed $class, mixed $method = null): bool
{
$injectValue = $this->parseInjectValue();
if (!($method instanceof ReflectionProperty)) {