public function setField(Field $field, $index = 0)
    {
        $this->field = $field;
        $this->valueIndex = $index;
    }
public function setField(Field $field, $index = 0)
    {
        $this->field = $field;
        $this->valueIndex = $index;
    }
public function setField ( Field $ field , $ index = 0 ) { $ this -> field = $ field ; $ this -> valueIndex = $ index ; }
Set the value's parent field for use in validation

@param sndsgd\Field $field
@param integer $index The index of the value in the field
Set the value s parent field for use in validation