addCriterion() public method

Adds a new criterion
public addCriterion ( ValidationLogicCriterion $c )
$c ValidationLogicCriterion
 /**
  * Ends the chaining and returns the parent object, either {@link ValidationLogicCriteria} or {@link FormField}
  *
  * @return FormField/ValidationLogicCriteria
  */
 public function end()
 {
     if ($this->parent) {
         $this->parent->addCriterion($this);
     }
     return $this->slave;
 }