We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea7f641 + e0765fa commit b043352Copy full SHA for b043352
src/JsonSchema/PhpBuilder.php
@@ -36,6 +36,7 @@ class PhpBuilder
36
const SCHEMA = 'schema';
37
const ORIGIN = 'origin';
38
const PROPERTY_NAME = 'property_name';
39
+ const IMPORT_TYPE = 'import_type';
40
41
/** @var \SplObjectStorage */
42
private $generatedClasses;
@@ -211,6 +212,7 @@ private function makeClass($schema, $path)
211
212
$phpDoc = $class->getPhpDoc();
213
$type = $this->getType($schema, $path);
214
if (!$type instanceof PhpClass) {
215
+ $class->addMeta($type, self::IMPORT_TYPE);
216
$phpDoc->add(
217
PhpDoc::TAG_METHOD,
218
new PlaceholderString(
0 commit comments