*/ final class BooleanField implements FieldInterface { use FieldTrait; public static function new(string $propertyName, ?string $label = null): self { return (new self()) ->setProperty($propertyName) ->setLabel($label) ->setTemplatePath('@LcSov/adminlte/crud/field/boolean.html.twig') ->setFormType(TextType::class); } }