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\PropertyAccess\HydratorInterface;
/**
* Define as hydrator by calling hydrator()
*
* @see ChildBuilderInterface::hydrator()
* @see HydratorInterface
* @implements ElementAttributeProcessorInterface<HydratorInterface>
*/
final class HydratorAttributeProcessor implements ElementAttributeProcessorInterface
{
use SimpleMethodCallGeneratorTrait;
* {@inheritdoc}
public function type(): string
return HydratorInterface::class;
}
public function process(ChildBuilderInterface $builder, object $attribute): void
$builder->hydrator($attribute);
private function methodName(): string
methodName()
This check looks for private methods that have been defined, but are not used inside the class.
return 'hydrator';
This check looks for private methods that have been defined, but are not used inside the class.