src/Form/Element/Element.php
public function getValidator()
    {
        if(!$this->hasValidator() && $this->hasForm()) {
            $this->setValidator(clone $this->getForm()->getValidator());
            $this->getValidator()->clearErrors()->clearMessages()->clearRules();
        }
        return $this->validator;
    }
public function getValidator()
    {
        if(!$this->hasValidator() && $this->hasForm()) {
            $this->setValidator(clone $this->getForm()->getValidator());
            $this->getValidator()->clearErrors()->clearMessages()->clearRules();
        }
        return $this->validator;
    }
public function getValidator ( ) { if ( ! $ this -> hasValidator ( ) && $ this -> hasForm ( ) ) { $ this -> setValidator ( clone $ this -> getForm ( ) -> getValidator ( ) ) ; $ this -> getValidator ( ) -> clearErrors ( ) -> clearMessages ( ) -> clearRules ( ) ; } return $ this -> validator ; }
getter for form validator

@return \FrenchFrogs\Validator\Validator|null
getter for form validator