private function prepareRuleName() { return $this->isResource ? $this->getNameToRest() : $this->getNameToNonRest(); }