rule !== '' ? $this->rule : true; } public function setRule(string $rule) { $this->rule = $rule; } public function getLevel(): int { return $this->level; } /** * @param int $level */ public function setLevel($level) { $this->level = $level; } }