This commit is contained in:
2021-06-03 13:57:29 +08:00
parent 04ef4473cc
commit 894feb3506
+13
View File
@@ -184,6 +184,19 @@ abstract class Crontab extends BaseObject
abstract public function isStop(): bool;
/**
* @param $name
* @return mixed
*/
public function __get($name): mixed
{
if (!isset($this->params[$name])) {
return null;
}
return $this->params[$name];
}
/**
* @throws Exception
*/