This commit is contained in:
2021-09-24 17:22:02 +08:00
parent 0aafbb03e2
commit dbc30827f8
86 changed files with 5 additions and 4 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php
namespace Annotation;
use Exception;
defined('ASPECT_ERROR') or define('ASPECT_ERROR', 'Aspect annotation must implement ');
/**
* Class Aspect
* @package Annotation
*/
#[\Attribute(\Attribute::TARGET_METHOD)] class Aspect extends Attribute
{
/**
* Aspect constructor.
* @param string $aspect
*/
public function __construct(public string $aspect)
{
}
/**
* @throws Exception
*/
public function execute(mixed $class, mixed $method = ''): bool
{
return true;
}
}