modify plugin name
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
namespace Kiri\Annotation;
|
namespace Kiri\Annotation;
|
||||||
|
|
||||||
|
|
||||||
|
use ReturnTypeWillChange;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Attribute
|
* Class Attribute
|
||||||
* @package Annotation
|
* @package Annotation
|
||||||
@@ -12,16 +14,55 @@ abstract class AbstractAttribute implements IAnnotation
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
/**
|
protected object $class;
|
||||||
* @param static $class
|
|
||||||
* @param mixed|string $method
|
|
||||||
* @return mixed
|
protected string $method;
|
||||||
*/
|
|
||||||
#[\Kiri\ReturnTypeWillChange]
|
|
||||||
public function execute(mixed $class, mixed $method = ''): mixed
|
/**
|
||||||
{
|
* @param static $class
|
||||||
// TODO: Implement execute() method.
|
* @param mixed|string $method
|
||||||
return true;
|
* @return mixed
|
||||||
}
|
*/
|
||||||
|
#[ReturnTypeWillChange]
|
||||||
|
public function execute(mixed $class, mixed $method = ''): mixed
|
||||||
|
{
|
||||||
|
// TODO: Implement execute() method.
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return object
|
||||||
|
*/
|
||||||
|
public function getClass(): object
|
||||||
|
{
|
||||||
|
return $this->class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param object $class
|
||||||
|
*/
|
||||||
|
public function setClass(object $class): void
|
||||||
|
{
|
||||||
|
$this->class = $class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getMethod(): string
|
||||||
|
{
|
||||||
|
return $this->method;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $method
|
||||||
|
*/
|
||||||
|
public function setMethod(string $method): void
|
||||||
|
{
|
||||||
|
$this->method = $method;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user