name = $name; $this->flags = $flags; $this->description = $description; $this->validator = $validator; } public function __call($name, array $args = []) { return $this->$name; } public function getType(): string { return strtolower((new \ReflectionClass(static::class))->getShortName()); } }