src/Jms/YamlConverter.php 1 location
|
@@ 485-489 (lines=5) @@
|
482 |
|
if ($valueProp = $this->typeHasValue($type, $class, '')) { |
483 |
|
return $valueProp; |
484 |
|
} |
485 |
|
if (!$node->getType()->getName()) { |
486 |
|
$visited = $this->visitTypeAnonymous($node->getType(), $node->getName(), $class); |
487 |
|
} else { |
488 |
|
$visited = $this->visitType($node->getType()); |
489 |
|
} |
490 |
|
|
491 |
|
return key($visited); |
492 |
|
} |
src/Php/PhpConverter.php 1 location
|
@@ 441-445 (lines=5) @@
|
438 |
|
return $this->visitElementDef($node->getReferencedElement()); |
439 |
|
} |
440 |
|
|
441 |
|
if (!$node->getType()->getName()) { |
442 |
|
return $this->visitTypeAnonymous($node->getType(), $node->getName(), $class); |
443 |
|
} else { |
444 |
|
return $this->visitType($node->getType(), $force); |
445 |
|
} |
446 |
|
} |
447 |
|
} |
448 |
|
|