for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Okapon\DoctrineSetTypeBundle\Validator\Constraints;
use Symfony\Component\Validator\Constraints\Choice;
/**
* SET type constraint
*
* @author Yuichi Okada <[email protected]>
* @Annotation
*/
class SetType extends Choice
{
* @var string $class validation target class name
public $class;
* {@inheritdoc}
public function getRequiredOptions()
return ['class'];
}