This commit is contained in:
as2252258@163.com
2021-08-29 05:53:45 +08:00
parent 0e7b59eb9c
commit 667b4ecd3a
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -34,9 +34,9 @@ use Exception;
* @throws \Kiri\Exception\NotFindClassException * @throws \Kiri\Exception\NotFindClassException
* @throws \ReflectionException * @throws \ReflectionException
*/ */
public static function execute(mixed $params, mixed $class, mixed $method = null): bool public function execute(mixed $class, mixed $method = null): bool
{ {
di(Getter::class)->addGetter($params->name, $class, $method); di(Getter::class)->addGetter($this->name, $class, $method);
return true; return true;
} }
+3 -3
View File
@@ -24,7 +24,7 @@ use Kiri\Kiri;
* Relation constructor. * Relation constructor.
* @param string $name * @param string $name
*/ */
public function __construct(string $name) public function __construct(public string $name)
{ {
} }
@@ -36,9 +36,9 @@ use Kiri\Kiri;
* @return bool * @return bool
* @throws Exception * @throws Exception
*/ */
public static function execute(mixed $params, mixed $class, mixed $method = null): bool public function execute(mixed $class, mixed $method = null): bool
{ {
di(Relate::class)->addRelate($class, $params->name, $method); di(Relate::class)->addRelate($class, $this->name, $method);
return true; return true;
} }
+3 -3
View File
@@ -16,7 +16,7 @@ use Exception;
* Set constructor. * Set constructor.
* @param string $name * @param string $name
*/ */
public function __construct(string $name) public function __construct(public string $name)
{ {
} }
@@ -29,9 +29,9 @@ use Exception;
* @throws \Kiri\Exception\NotFindClassException * @throws \Kiri\Exception\NotFindClassException
* @throws \ReflectionException * @throws \ReflectionException
*/ */
public static function execute(mixed $params, mixed $class, mixed $method = null): bool public function execute(mixed $class, mixed $method = null): bool
{ {
di(Setter::class)->addSetter($params->name, $class, $method); di(Setter::class)->addSetter($this->name, $class, $method);
return true; return true;
} }