ConstraintWithValueAsDefault.php in Plug 7
File
lib/Symfony/validator/Symfony/Component/Validator/Tests/Fixtures/ConstraintWithValueAsDefault.php
View source
<?php
namespace Symfony\Component\Validator\Tests\Fixtures;
use Symfony\Component\Validator\Constraint;
class ConstraintWithValueAsDefault extends Constraint {
public $property;
public $value;
public function getDefaultOption() {
return 'value';
}
public function getTargets() {
return array(
self::PROPERTY_CONSTRAINT,
self::CLASS_CONSTRAINT,
);
}
}