Created
January 8, 2015 16:53
-
-
Save ostretsov/9fe9122ad063c8570746 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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