Files
kiri-databases/Annotation/Set.php
T

35 lines
500 B
PHP
Raw Normal View History

2022-01-09 03:49:51 +08:00
<?php
namespace Database\Annotation;
2022-02-23 16:32:08 +08:00
use Kiri\Annotation\AbstractAttribute;
2022-01-09 03:49:51 +08:00
use Exception;
2022-02-23 16:32:08 +08:00
#[\Attribute(\Attribute::TARGET_METHOD)] class Set extends AbstractAttribute
2022-01-09 03:49:51 +08:00
{
/**
* Set constructor.
* @param string $name
*/
public function __construct(public string $name)
{
}
2022-02-21 10:56:37 +08:00
/**
* @param mixed $class
* @param mixed|null $method
* @return bool
*/
2022-01-09 03:49:51 +08:00
public function execute(mixed $class, mixed $method = null): bool
{
return true;
}
}