for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RunOpenCode\Bundle\ExchangeRate\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
/**
* {@inheritdoc}
*
* @Annotation
*/
class ExchangeRate extends Constraint
{
public $message = 'Provided currency code and rate type is not valid in this context.';
public function validatedBy()
return 'run_open_code.exchange_rate.rate_validator';
}
public function getTargets()
return self::CLASS_CONSTRAINT;