改名
This commit is contained in:
@@ -4,15 +4,19 @@
|
||||
namespace Annotation\Model;
|
||||
|
||||
|
||||
use Annotation\Annotation;
|
||||
use Annotation\IAnnotation;
|
||||
use Attribute;
|
||||
use Database\ActiveRecord;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
use Snowflake\Snowflake;
|
||||
|
||||
|
||||
/**
|
||||
* Class Get
|
||||
* @package Annotation\Model
|
||||
*/
|
||||
#[Attribute(Attribute::TARGET_METHOD)] class Get
|
||||
#[Attribute(Attribute::TARGET_METHOD)] class Get implements IAnnotation
|
||||
{
|
||||
|
||||
|
||||
@@ -27,4 +31,19 @@ use Database\ActiveRecord;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param array $handler
|
||||
* @return Annotation
|
||||
* @throws ComponentException
|
||||
*/
|
||||
public function execute(array $handler): Annotation
|
||||
{
|
||||
// TODO: Implement execute() method.
|
||||
$annotation = Snowflake::app()->getAttributes();
|
||||
$annotation->addMethodAttribute($handler, $this->name);
|
||||
|
||||
return $annotation;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user