public function getValidators()
    {
        $this->validators = $this->generateInputs();

        $translatedInputs = [];

        foreach ($this->validators as $key => $validator) {
            $translatedOperators = [];

            foreach ($validator['availableOperators'] as $availableOperators) {
                $translatedOperators[$availableOperators] = Operators::getI18n(
                    $this->translator,
                    $availableOperators
                );
            }

            $validator['availableOperators'] = $translatedOperators;

            $translatedInputs[$key] = $validator;
        }

        $validators = [
            'inputs'       => $translatedInputs,
            'setOperators' => $this->operators,
            'setValues'    => $this->values
        ];

        return $validators;
    }
public function getValidators()
    {
        $this->validators = $this->generateInputs();

        $translatedInputs = [];

        foreach ($this->validators as $key => $validator) {
            $translatedOperators = [];

            foreach ($validator['availableOperators'] as $availableOperators) {
                $translatedOperators[$availableOperators] = Operators::getI18n(
                    $this->translator,
                    $availableOperators
                );
            }

            $validator['availableOperators'] = $translatedOperators;

            $translatedInputs[$key] = $validator;
        }

        $validators = [
            'inputs'       => $translatedInputs,
            'setOperators' => $this->operators,
            'setValues'    => $this->values
        ];

        return $validators;
    }
public function getValidators ( ) { $ this -> validators = $ this -> generateInputs ( ) ; $ translatedInputs = [ ] ; foreach ( $ this -> validators as $ key => $ validator ) { $ translatedOperators = [ ] ; foreach ( $ validator [ 'availableOperators' ] as $ availableOperators ) { $ translatedOperators [ $ availableOperators ] = Operators :: getI18n ( $ this -> translator , $ availableOperators ) ; } $ validator [ 'availableOperators' ] = $ translatedOperators ; $ translatedInputs [ $ key ] = $ validator ; } $ validators = [ 'inputs' => $ translatedInputs , 'setOperators' => $ this -> operators , 'setValues' => $ this -> values ] ; return $ validators ; }
Return all validators

@return array
Return all validators