public function getRules(bool $inherited = true): array {
        $ret = array();
        foreach ($this->resRules as $i) {
            $ret[] = $i->getData();
        }
        if ($inherited) {
            foreach ($this->extRules as $i) {
                $ret[] = $i->getData();
            }
        }
        return $ret;
    }