modify plugin name

This commit is contained in:
2022-06-22 18:28:46 +08:00
parent c72c5d4e0d
commit 20eff5c29a
6 changed files with 3 additions and 24 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class Getter
* @param $class
* @param $method
*/
public function addGetter($name, $class, $method)
public function addGetter($name, $class, $method): void
{
$this->_classMapping[$class][$name] = $method;
}
-11
View File
@@ -734,17 +734,6 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
}
/**
* @param $name
* @return array|string|null
* @throws Exception
*/
public function getRelate($name): null|array|string
{
return di(Relate::class)->getRelate(static::class, $name);
}
/**
* @param $attribute
* @return bool