for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace steevanb\SymfonyValidatorConstraints\Constraints;
use Symfony\Component\Validator\Constraint;
class UniqueObject extends Constraint
{
const TYPE_OUT_RANGE = 'OUT_RANGE';
/** @var string */
protected $message = 'Non-unique object found.';
/** @var array */
protected $properties = [];
protected $getters = [];
/** @var bool */
protected $strict = true;
protected $uniqid;
/**
* @return string
*/
public function validatedBy()
return 'steevanb\\SymfonyValidatorConstraints\\Constraints\\UniqueObjectValidator';
}
* @return array
public function getRequiredOptions()
return ['uniqid'];
public function getMessage()
return $this->message;
public function getProperties()
return $this->properties;
public function getGetters()
return $this->getters;
* @return bool
public function getStrict()
return $this->strict;
public function getUniqid()
return $this->uniqid;