for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EmanueleMinotto\DomainParserBundle\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
/**
* Constraint to check if the suffix is valid or not.
*
* @author Emanuele Minotto <[email protected]>
* @Annotation
*/
class IsSuffixValid extends Constraint
{
* Constraint message.
* @var string
public $message = 'The suffix "%suffix%" is invalid.';
* {@inheritdoc}
public function validatedBy()
return 'is_suffix_valid';
}