public function end() { if ($this->parent) { $this->parent->addCriterion($this); } return $this->slave; }