public function Callback::getTargets in Plug 7
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.
@api
Return value
string|array One or more constant values
Overrides Constraint::getTargets
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ Callback.php, line 73
Class
- Callback
- @Target({"CLASS", "PROPERTY", "METHOD", "ANNOTATION"})
Namespace
Symfony\Component\Validator\ConstraintsCode
public function getTargets() {
return array(
self::CLASS_CONSTRAINT,
self::PROPERTY_CONSTRAINT,
);
}