Files
kiri-databases/Annotation/Relation.php
T
2022-06-22 18:28:46 +08:00

40 lines
589 B
PHP

<?php
namespace Database\Annotation;
use Kiri\Annotation\AbstractAttribute;
use Exception;
/**
* Class Relation
* @package Annotation\Model
*/
#[\Attribute(\Attribute::TARGET_METHOD)] class Relation extends AbstractAttribute
{
/**
* Relation constructor.
* @param string $name
*/
public function __construct(public string $name)
{
}
/**
* @param mixed $class
* @param mixed|null $method
* @return bool
* @throws Exception
*/
public function execute(mixed $class, mixed $method = null): bool
{
return true;
}
}