Symfony2 API
Class

Symfony\Component\Form\Extension\Validator\Constraints\Form

class Form extends Constraint

Constants

ERR_INVALID

Violation code marking an invalid form.

Methods

string|array getTargets()

Returns whether the constraint can be put onto classes, properties or both

Details

at line 29
public string|array getTargets()

Returns whether the constraint can be put onto classes, properties or both

This method should return one or more of the constants
Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT.

Return Value

string|array One or more constant values