src/Application.php
public function getValidator(): Validator
    {
        if ($this->validator === null) {
            $this->validator = new Validator(new ValidatorCollection(), $this->getPlaceholder());
        }

        return $this->validator;
    }
public function getValidator(): Validator
    {
        if ($this->validator === null) {
            $this->validator = new Validator(new ValidatorCollection(), $this->getPlaceholder());
        }

        return $this->validator;
    }
public function getValidator ( ) : Validator { if ( $ this -> validator === null ) { $ this -> validator = new Validator ( new ValidatorCollection ( ) , $ this -> getPlaceholder ( ) ) ; } return $ this -> validator ; }
Returns validator instance

@return  Validator
Returns validator instance