You are here

public function PropertyConstraint::getTargets in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Fixtures/PropertyConstraint.php \Symfony\Component\Validator\Tests\Fixtures\PropertyConstraint::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/PropertyConstraint.php, line 18

Class

PropertyConstraint

Namespace

Symfony\Component\Validator\Tests\Fixtures

Code

public function getTargets() {
  return self::PROPERTY_CONSTRAINT;
}