protected function addViolation($field, $message, $invalidValue, AddressFormat $addressFormat)
    {
        $this->context->buildViolation($message)
            ->atPath('[' . $field . ']')
            ->setInvalidValue($invalidValue)
            ->addViolation();
    }
protected function addViolation($field, $message, $invalidValue, AddressFormat $addressFormat)
    {
        $this->context->buildViolation($message)
            ->atPath('[' . $field . ']')
            ->setInvalidValue($invalidValue)
            ->addViolation();
    }
protected function addViolation ( $ field , $ message , $ invalidValue , AddressFormat $ addressFormat ) { $ this -> context -> buildViolation ( $ message ) -> atPath ( '[' . $ field . ']' ) -> setInvalidValue ( $ invalidValue ) -> addViolation ( ) ; }
Adds a violation.

@param string $field          The field.
@param string        $message        The error message.
@param mixed         $invalidValue   The invalid, validated value.
@param AddressFormat $addressFormat The address format.
Adds a violation .