public function ConstraintC::getTargets in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Fixtures/ConstraintC.php \Symfony\Component\Validator\Tests\Fixtures\ConstraintC::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
Overrides Constraint::getTargets
File
- vendor/
symfony/ validator/ Tests/ Fixtures/ ConstraintC.php, line 26
Class
Namespace
Symfony\Component\Validator\Tests\FixturesCode
public function getTargets() {
return array(
self::PROPERTY_CONSTRAINT,
self::CLASS_CONSTRAINT,
);
}