/** * Ends the chaining and returns the parent object, either {@link DisplayLogicCriteria} or {@link FormField} * @return FormField/DisplayLogicCriteria */ public function end() { if ($this->parent) { $this->parent->addCriterion($this); } return $this->slave; }