public function getValidator()
    {
        if (!($this->validator instanceof ValidatorInterface)) {
            $this->validator = ValidatorHelper::create($this->validator);
        }

        return $this->validator;
    }
public function getValidator()
    {
        if (!($this->validator instanceof ValidatorInterface)) {
            $this->validator = ValidatorHelper::create($this->validator);
        }

        return $this->validator;
    }
public function getValidator ( ) { if ( ! ( $ this -> validator instanceof ValidatorInterface ) ) { $ this -> validator = ValidatorHelper :: create ( $ this -> validator ) ; } return $ this -> validator ; }
Method to get property Rule

@return  ValidatorInterface
Method to get property Rule