trait Properties {
function __get(string $name) {
if (\method_exists($this, "get$name")) {
return $this->{"get$name"}();
}
}
function __set(string $name, $value): void {
if (\method_exists($this, "set$name")) {
$this->{"set$name"}();
}
}
function __isset(string $name): bool {
return \property_exists($this, $name) || \method_exists($this, "get$name");
}
function __unset(string $name): void {
throw new \RuntimeException("nope");