* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\Constraints; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Exception\ConstraintDefinitionException; /** * Used for the comparison of values. * * @author Daniel Holmes * @author Bernhard Schussek */ abstract class AbstractComparison extends Constraint { public $message; public $value; public $propertyPath; /** * {@inheritdoc} */ public function __construct($options = null) { if (null === $options) { $options = array(); } if (is_array($options)) { if (!isset($options['value']) && !isset($options['propertyPath'])) { throw new ConstraintDefinitionException(sprintf('The "%s" constraint requires either the "value" or "propertyPath" option to be set.', get_class($this))); } if (isset($options['value']) && isset($options['propertyPath'])) { throw new ConstraintDefinitionException(sprintf('The "%s" constraint requires only one of the "value" or "propertyPath" options to be set, not both.', get_class($this))); } if (isset($options['propertyPath']) && !class_exists(PropertyAccess::class)) { throw new ConstraintDefinitionException(sprintf('The "%s" constraint requires the Symfony PropertyAccess component to use the "propertyPath" option.', get_class($this))); } } parent::__construct($options); } /** * {@inheritdoc} */ public function getDefaultOption() { return 'value'; } } __halt_compiler();----SIGNATURE:----bpNvDyUT/3u6YQe7Zeu20w3HGTHpUJWOHHdAmaCJCuq44Hlfq6yM9jQG5mfwXpy0RVWqW9pBcsO0UGViWIdHHITGEFAVRENbvxtNw0XHmAxWzAIs6xnlqmdhIMcoqP70qCJxYmYYKb30fr1Br/vEiBlbXFViqBsPH+WMMs5LQhwhIJ3Nmj3TmYdyC2GXUrrJdUTv+VXcAbFMPeZCGULX+tMBdfUmGRzsoB/tQA0ykBoUReLXbuR5H36PVpw/2pn8PVrUWGcE2CYuu1eAN6EGHxallDPWfIWxDvZLuRC2c0dQ3R/ppwIoVabhvPwviHr4ZcgsvjlF2Zl5y6pO3fTCrEl33Mj+lEWyzUJJ8x7UOeIysfH6U4fYryGm/4N9wc/sfUlwzR8X2DU+RJBVXPVIWZCYz0cIdWNYV0ACl7hHa4PcF3Dex8v1WN+MC0RofLwn5YZ4yYKTgNiDTFUn3ubhqaEycKferQeo8SXDkh9kqpY7KkFDVuOI9EIya/g34BD+7NVu/cOkMs/DGujRXMl3Tqq9/R3KUIu/wNdiTVMSI9ofzxMy3TklzlUSPjT3d8rtD6WC/jd+qlAaxVczPtWJkoOblCP2hriRVus0xci3dqYhFWZ3GJX2ltitqH6tJlso25PbI2aKOSpvtF5ilhjf/EH3713pSrgGP/A/JSBCKrI=----ATTACHMENT:----NTc4MzU4MzM1MTc5ODgwOCA0MzA3MzcwNTc1ODAwNjQwIDgyNzI0ODMxMTI5NDA4NTQ=