Skip to content

Instantly share code, notes, and snippets.

@ostretsov
Created January 8, 2015 16:53
Show Gist options
  • Save ostretsov/9fe9122ad063c8570746 to your computer and use it in GitHub Desktop.
Save ostretsov/9fe9122ad063c8570746 to your computer and use it in GitHub Desktop.
<?php
/**
* (c) Artem Ostretsov <artem@ostretsov.ru>
* Created at 15.10.2014 12:31
*/
namespace SP\EventBundle\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
/**
* @Annotation
*/
class EventRequestSectionRequirement extends Constraint
{
public $message = 'Section must be specified explicitly';
public function getTargets()
{
return self::CLASS_CONSTRAINT;
}
public function validatedBy()
{
return 'event_request_section_requirement_validator';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment