/** * {@inheritDoc} */ public function getParentRule() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getParentRule', array()); return parent::getParentRule(); }
/** * @param Rule $rule * @return Rule */ public function addChildRule(Rule $rule) { if ($this !== $rule->getParentRule()) { $rule->setParentRule($this); } $this->childRules[$rule->getSubId()] = $rule; return $this; }