All Downloads are FREE. Search and download functionalities are using the official Maven repository.

php-dt.model_normal_var.mustache Maven / Gradle / Ivy

The newest version!
{{#isContainer
}}     * @DTA\Strategy(name="Object", options={"type":{{internal.containerDataType}}::class})
     * @DTA\Validator(name="TypeCompliant", options={"type":{{internal.containerDataType}}::class})
{{/isContainer
}}{{^isContainer
}}{{#isPrimitiveType
}}     * @DTA\Validator(name="Scalar", options={"type":"{{dataType}}"})
{{/isPrimitiveType
}}{{#isDate
}}     * @DTA\Strategy(name="Date")
     * @DTA\Validator(name="Date")
{{/isDate
}}{{#isDateTime
}}     * @DTA\Strategy(name="DateTime")
     * @DTA\Validator(name="DateTime")
{{/isDateTime
}}{{^isPrimitiveType
}}{{^isDate
}}{{^isDateTime
}}     * @DTA\Strategy(name="Object", options={"type":{{dataType}}::class})
     * @DTA\Validator(name="TypeCompliant", options={"type":{{dataType}}::class})
{{/isDateTime
}}{{/isDate
}}{{/isPrimitiveType
}}{{/isContainer
}}{{#hasValidation
}}{{#minLength}}{{#maxLength
}}     * @DTA\Validator(name="Length", options={"min":{{minLength}}, "max":{{maxLength}}})
{{/maxLength}}{{/minLength
}}{{^minLength}}{{#maxLength
}}     * @DTA\Validator(name="Length", options={"max":{{maxLength}}})
{{/maxLength}}{{/minLength
}}{{#minLength}}{{^maxLength
}}     * @DTA\Validator(name="Length", options={"min":{{minLength}}})
{{/maxLength}}{{/minLength
}}{{#minimum}}{{#maximum
}}     * @DTA\Validator(name="Range", options={"min":{{minimum}}, "max":{{maximum}}{{#exclusiveMinimum}}, "exclude_min":true{{/exclusiveMinimum}}{{#exclusiveMaximum}}, "exclude_max":true{{/exclusiveMaximum}}})
{{/maximum}}{{/minimum
}}{{^minimum}}{{#maximum
}}     * @DTA\Validator(name="Range", options={"max":{{maximum}}{{#exclusiveMaximum}}, "exclude_max":true{{/exclusiveMaximum}}})
{{/maximum}}{{/minimum
}}{{#minimum}}{{^maximum
}}     * @DTA\Validator(name="Range", options={"min":{{minimum}}{{#exclusiveMinimum}}, "exclude_min":true{{/exclusiveMinimum}}})
{{/maximum}}{{/minimum
}}{{#pattern
}}     * @DTA\Validator(name="Match", options={"pattern":"{{{pattern}}}"})
{{/pattern
}}{{/hasValidation}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy