modify
This commit is contained in:
@@ -6,7 +6,7 @@ namespace Annotation\Model;
|
||||
|
||||
use Attribute;
|
||||
use Exception;
|
||||
use Snowflake\Snowflake;
|
||||
use Kiri\Kiri;
|
||||
|
||||
|
||||
/**
|
||||
@@ -34,7 +34,7 @@ use Snowflake\Snowflake;
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): bool
|
||||
{
|
||||
$annotation = Snowflake::getAnnotation();
|
||||
$annotation = Kiri::getAnnotation();
|
||||
$annotation->addGets($class::class, $this->name, $method);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ use Annotation\Attribute;
|
||||
use Database\ActiveRecord;
|
||||
use Exception;
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
use Snowflake\Snowflake;
|
||||
use Kiri\Kiri;
|
||||
|
||||
|
||||
/**
|
||||
@@ -36,7 +36,7 @@ use Snowflake\Snowflake;
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): bool
|
||||
{
|
||||
$annotation = Snowflake::getAnnotation();
|
||||
$annotation = Kiri::getAnnotation();
|
||||
$annotation->addRelate($class::class, $this->name, $method);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Annotation\Model;
|
||||
use Annotation\Attribute;
|
||||
use Database\ActiveRecord;
|
||||
use Exception;
|
||||
use Snowflake\Snowflake;
|
||||
use Kiri\Kiri;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_METHOD)] class Set extends Attribute
|
||||
{
|
||||
@@ -30,7 +30,7 @@ use Snowflake\Snowflake;
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): bool
|
||||
{
|
||||
$annotation = Snowflake::getAnnotation();
|
||||
$annotation = Kiri::getAnnotation();
|
||||
$annotation->addSets($class::class, $this->name, $method);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user