Compiles a builder

@param ClassBuilder $builder

@return StreamWriter
336826
public function compile(ClassBuilder $builder)
    {
        $writer = new StreamWriter($this->options);
        $writer->writeLine('<?php');
        $writer->writeLine();

        $this->compileClassDefinition($builder, $writer);
        $this->compilePropertyDefinitions($builder, $writer);
        $this->compileMethodDefinitions($builder, $writer);

        $writer->writeLine('}');

        return $writer;
    }
981447
protected function paginateBuilder(Builder $builder, EncodingParametersInterface $parameters)
    {
        $pageSize   = $this->getPageSize($parameters);
        $pageNumber = $this->getPageNumber($parameters);
        $paginator  = $builder->paginate($pageSize, ['*'], 'page', $pageNumber);

        /** @var IlluminateRequest $request */
        $request = $this->getContainer()->make(IlluminateRequest::class);
        $url     = $request->url();
        $query   = $request->query();

        $pagedData  = $this->getFactory()->createPagingStrategy()->createPagedData($paginator, $url, true, $query);

        return $pagedData;
    }
26343
public function build(ContainerBuilder $container)
    {
        $container->addCompilerPass(new CommandProcessorPass(), PassConfig::TYPE_BEFORE_REMOVING);
        $container->addCompilerPass(new PoolsPass());
        $container->addCompilerPass(new RegisterSerializerDriversPass());
        $container->addCompilerPass(new WorkerRunnersPass());
    }
1287685
private static function _makeBuilder()
    {
        $builder = new Builder();
        $builder->table = self::getTableName();
        $builder->order = self::getOrder();
        $builder->cls   = get_called_class();
        return $builder;
    }
1358940
public function buildForm(FormBuilderInterface $builder): FormInterface
    {
        $this->buildFilterForm($builder);
        $this->buildSortableForm($builder);

        $this->form = $builder->getForm();

        return $this->form;
    }
543918
public function applyTo(ReportBuilder $builder)
    {
        $builder->reportFilePath($this->getReportFileName());

        if ($this->isCoverageReportEmpty()) {
            return $builder;
        }

        return $this->applyReportResult($builder);
    }
1203801
@Nonnull
  public static <T> UBLPEWriterBuilder <T> create (@Nonnull final Class <T> aClass)
  {
    return new UBLPEWriterBuilder <> (aClass);
  }
197211
protected function getFieldBuilder(ClassMetadataBuilder $builder, array $mapping)
    {
        return Field::make(
            $builder,
            $mapping['type'],
            $this->name
        );
    }
1057947
protected function addWithDrafts(Builder $builder)
    {
        $builder->macro('withDrafts', function (Builder $builder) {
            $this->remove($builder, $builder->getModel());

            return $builder;
        });
    }
132784
@Nonnull
  public static <T> UBLTRWriterBuilder <T> create (@Nonnull final Class <T> aClass)
  {
    return new UBLTRWriterBuilder <> (aClass);
  }
632295
public function run(Builder $builder): Builder
    {
        if ($builder->getQuery()->getConnection() instanceof PostgresConnection) {
            return $builder->whereRaw('content::TEXT ILIKE ?', '%'.$this->request->get('search').'%');
        }

        return $builder->where('content', 'LIKE', '%'.$this->request->get('search').'%');
    }
635424
public function buildLoader(ContainerBuilder $container)
    {
        return new YamlFileLoader($container, new FileLocator($this->dir . $this->prefix));
    }
134377
@Nonnull
  public static <T> UBL21WriterBuilder <T> create (@Nonnull final Class <T> aClass)
  {
    return new UBL21WriterBuilder <> (aClass);
  }
135623
public static <T extends Annotation> AnnotationValueBuilder<T> builder(Class<T> annotation) {
        return new AnnotationValueBuilder<>(annotation);
    }
949787
public static function createWithBuilder(
        HandlerBuilderInterface $builder,
        FormatterRegistryInterface $formatterRegistry,
        $debug = false
    ) {
        $handler = $builder->buildHandler();
        $docGenerator = new DocGenerator($builder->buildDocExtractor(), $formatterRegistry);

        return new static($handler, $docGenerator, $debug);
    }
108728
public static function builder($builder = null)
    {
        if (is_object($builder)) {
            self::$builder = $builder;
        }

        return isset(self::$builder) ? self::$builder : self::$builder = new Builder;
    }
1127983
public AbstractBuilder getConstructorBuilder(ClassWriter classWriter) {
        return ConstructorBuilder.getInstance(context, classWriter.getTypeElement(),
            writerFactory.getConstructorWriter(classWriter));
    }