* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Core\ConstraintValidator\Constraints; use PrestaShop\PrestaShop\Core\ConstraintValidator\PositiveOrZeroValidator; use Symfony\Component\Validator\Constraint; /** * Constraint for validating if value is not negative and is not zero */ class PositiveOrZero extends Constraint { public $message = 'This value should be either positive or zero.'; /** * {@inheritdoc} */ public function validatedBy() { return PositiveOrZeroValidator::class; } }