public function index($cols) { $this->constraints[] = $constraint = new Constraint(NULL, $this); $constraint->index($cols); return $constraint; }