src/Validator.php
public function withLabels(array $labels): Validator
    {
        $translator = $this->translator->withLabels($labels);

        return new Validator($this->rules, $this->parser, $translator);
    }
public function withLabels(array $labels): Validator
    {
        $translator = $this->translator->withLabels($labels);

        return new Validator($this->rules, $this->parser, $translator);
    }
public function withLabels ( array $ labels ) : Validator { $ translator = $ this -> translator -> withLabels ( $ labels ) ; return new Validator ( $ this -> rules , $ this -> parser , $ translator ) ; }
Return a new validator with the given list of labels added to the
translator.

@param array $labels
@return \Ellipse\Validation\Validator
Return a new validator with the given list of labels added to the translator .