for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bdf\Form\Attribute\Processor\Element;
use Bdf\Form\Child\ChildBuilderInterface;
use Bdf\Form\ElementBuilderInterface;
use Symfony\Component\Validator\Constraint;
/**
* Add the constraint by calling satisfy
*
* @see ElementBuilderInterface::satisfy()
* @see Constraint
* @implements ElementAttributeProcessorInterface<Constraint>
*/
final class ConstraintAttributeProcessor implements ElementAttributeProcessorInterface
{
use SimpleMethodCallGeneratorTrait;
* {@inheritdoc}
public function type(): string
return Constraint::class;
}
public function process(ChildBuilderInterface $builder, object $attribute): void
$builder->satisfy($attribute);
private function methodName(): string
methodName()
This check looks for private methods that have been defined, but are not used inside the class.
return 'satisfy';
This check looks for private methods that have been defined, but are not used inside the class.