for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace JBen87\ParsleyBundle\Constraint\Constraints;
use JBen87\ParsleyBundle\Constraint\Constraint;
use Symfony\Component\OptionsResolver\OptionsResolver;
final class GreaterThanOrEqual extends Constraint
{
private int $value;
public function __construct(array $options = [])
parent::__construct($options);
$this->value = $options['value'];
}
protected function getAttribute(): string
return 'data-parsley-gte';
protected function getValue(): string
return (string) $this->value;
protected function configureOptions(OptionsResolver $resolver): void
$resolver
->setRequired(['value'])
->setAllowedTypes('value', ['int'])
;