Skip to content

Commit 1a5cc5d

Browse files
committed
Rename renderProxy to renderQueue
1 parent 839309b commit 1a5cc5d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ModelGenerator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ public function generateModels(string $source, string $destination): array
8585
throw new FileSystemException("Destination directory '$destination' doesn't exist or is not empty");
8686
}
8787

88-
$renderProxy = new RenderQueue();
89-
$schemaProcessor = new SchemaProcessor($source, $destination, $this->generatorConfiguration, $renderProxy);
88+
$renderQueue = new RenderQueue();
89+
$schemaProcessor = new SchemaProcessor($source, $destination, $this->generatorConfiguration, $renderQueue);
9090

9191
foreach ($this->getSchemaFiles($source) as $jsonSchemaFile) {
9292
$schemaProcessor->process($jsonSchemaFile);
9393
}
9494

9595
// render all collected classes
96-
$renderProxy->execute($destination, $this->generatorConfiguration);
96+
$renderQueue->execute($destination, $this->generatorConfiguration);
9797

9898
if ($this->generatorConfiguration->hasPrettyPrintEnabled()) {
9999
// @codeCoverageIgnoreStart

src/SchemaProcessor/SchemaProcessor.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SchemaProcessor
2323
/** @var GeneratorConfiguration */
2424
protected $generatorConfiguration;
2525
/** @var RenderQueue */
26-
protected $renderProxy;
26+
protected $renderQueue;
2727
/** @var string */
2828
protected $source;
2929
/** @var string */
@@ -43,18 +43,18 @@ class SchemaProcessor
4343
* @param string $source
4444
* @param string $destination
4545
* @param GeneratorConfiguration $generatorConfiguration
46-
* @param RenderQueue $renderProxy
46+
* @param RenderQueue $renderQueue
4747
*/
4848
public function __construct(
4949
string $source,
5050
string $destination,
5151
GeneratorConfiguration $generatorConfiguration,
52-
RenderQueue $renderProxy
52+
RenderQueue $renderQueue
5353
) {
5454
$this->source = $source;
5555
$this->destination = $destination;
5656
$this->generatorConfiguration = $generatorConfiguration;
57-
$this->renderProxy = $renderProxy;
57+
$this->renderQueue = $renderQueue;
5858
}
5959

6060
/**
@@ -162,7 +162,7 @@ public function generateClassFile(string $classPath, string $className, Schema $
162162
[$this->destination, str_replace('\\', DIRECTORY_SEPARATOR, $classPath), $className]
163163
) . '.php';
164164

165-
$this->renderProxy->addRenderJob(new RenderJob($fileName, $classPath, $className, $schema));
165+
$this->renderQueue->addRenderJob(new RenderJob($fileName, $classPath, $className, $schema));
166166

167167
if ($this->generatorConfiguration->isOutputEnabled()) {
168168
// @codeCoverageIgnoreStart

0 commit comments

Comments
 (0)