private function initializeValidator($form)
    {
        if (false === $form instanceof FormInterface) {
            throw InvalidArgumentTypeException::validatingWrongFormType(get_class($form));
        }

        $this->form = $form;
        $this->result = new FormResult;
        $this->formValidatorExecutor = $this->getFormValidatorExecutor($form);
    }
private function initializeValidator($form)
    {
        if (false === $form instanceof FormInterface) {
            throw InvalidArgumentTypeException::validatingWrongFormType(get_class($form));
        }

        $this->form = $form;
        $this->result = new FormResult;
        $this->formValidatorExecutor = $this->getFormValidatorExecutor($form);
    }
private function initializeValidator ( $ form ) { if ( false === $ form instanceof FormInterface ) { throw InvalidArgumentTypeException :: validatingWrongFormType ( get_class ( $ form ) ) ; } $ this -> form = $ form ; $ this -> result = new FormResult ; $ this -> formValidatorExecutor = $ this -> getFormValidatorExecutor ( $ form ) ; }
Initializes all class variables.

@param FormInterface $form
@throws InvalidArgumentTypeException
Initializes all class variables .