You are here

public function ConstraintA::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/Tests/Fixtures/ConstraintA.php, line 27

Class

ConstraintA

Namespace

Symfony\Component\Validator\Tests\Fixtures

Code

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