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