public function getRule($flag)
    {
        try {
            $this->checkFlag($flag);
        } catch (Exception $e) {
            return null;
        }

        $ruleIndex = $this->_flags[$flag];

        return $this->_rules[$ruleIndex];
    }