for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Exchange Rate Bundle, an RunOpenCode project.
*
* (c) 2017 RunOpenCode
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RunOpenCode\Bundle\ExchangeRate\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
/**
* Class ExchangeRate
* @package RunOpenCode\Bundle\ExchangeRate\Validator\Constraints
* {@inheritdoc}
* @Annotation
class ExchangeRate extends Constraint
{
public $message = 'validator.rate.invalid';
public function validatedBy()
return 'runopencode.exchange_rate.rate_validator';
}
public function getTargets()
return self::CLASS_CONSTRAINT;