@@ -18,6 +18,9 @@ |
||
| 18 | 18 | |
| 19 | 19 | class GeneratorFactory |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @param \Symfony\Component\Serializer\Serializer $serializer |
|
| 23 | + */ |
|
| 21 | 24 | public static function build($serializer) |
| 22 | 25 | { |
| 23 | 26 | if (class_exists('PhpParser\ParserFactory')) { |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use Joli\Jane\OpenApi\Model\PathParameterSubSchema; |
| 12 | 12 | use Joli\Jane\OpenApi\Model\QueryParameterSubSchema; |
| 13 | 13 | use Joli\Jane\OpenApi\Operation\Operation; |
| 14 | -use Joli\Jane\Reference\Resolver; |
|
| 15 | 14 | use PhpParser\Node\Arg; |
| 16 | 15 | use PhpParser\Node\Expr; |
| 17 | 16 | use PhpParser\Node\Name; |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Joli\Jane\Generator\Context\Context; |
| 6 | 6 | use Joli\Jane\Runtime\Reference; |
| 7 | -use Joli\Jane\Reference\Resolver; |
|
| 8 | 7 | use Joli\Jane\OpenApi\Model\Schema; |
| 9 | 8 | use PhpParser\Node\Arg; |
| 10 | 9 | use PhpParser\Node\Expr; |
@@ -23,6 +23,7 @@ |
||
| 23 | 23 | * @param $status |
| 24 | 24 | * @param $schema |
| 25 | 25 | * @param Context $context |
| 26 | + * @param string $reference |
|
| 26 | 27 | * |
| 27 | 28 | * @return [string, null|Stmt\If_] |
| 28 | 29 | */ |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Doctrine\Common\Inflector\Inflector; |
| 6 | 6 | use Joli\Jane\Generator\Context\Context; |
| 7 | 7 | use Joli\Jane\Runtime\Reference; |
| 8 | -use Joli\Jane\Reference\Resolver; |
|
| 9 | 8 | use Joli\Jane\OpenApi\Model\BodyParameter; |
| 10 | 9 | use Joli\Jane\OpenApi\Model\Schema; |
| 11 | 10 | use PhpParser\Node; |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Fitbug\SymfonySerializer\YamlEncoderDecoder\YamlDecode; |
| 6 | 6 | use Fitbug\SymfonySerializer\YamlEncoderDecoder\YamlEncode; |
| 7 | 7 | use Fitbug\SymfonySerializer\YamlEncoderDecoder\YamlEncoder; |
| 8 | -use Joli\Jane\Encoder\RawEncoder; |
|
| 9 | 8 | use Joli\Jane\Generator\Context\Context; |
| 10 | 9 | use Joli\Jane\Generator\File; |
| 11 | 10 | use Joli\Jane\Generator\ModelGenerator; |
@@ -34,6 +34,9 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | private $reference; |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $reference |
|
| 39 | + */ |
|
| 37 | 40 | public function __construct(OpenApiOperation $operation, $path, $method, $reference, $basePath = "", $host = 'localhost') |
| 38 | 41 | { |
| 39 | 42 | $this->operation = $operation; |
@@ -8,6 +8,9 @@ |
||
| 8 | 8 | |
| 9 | 9 | class OperationManager |
| 10 | 10 | { |
| 11 | + /** |
|
| 12 | + * @param string $reference |
|
| 13 | + */ |
|
| 11 | 14 | public function buildOperationCollection(OpenApi $openApi, $reference) |
| 12 | 15 | { |
| 13 | 16 | $operationCollection = new OperationCollection(); |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | /** |
| 73 | 73 | * Discover classes in operation |
| 74 | 74 | * |
| 75 | - * @param $name |
|
| 75 | + * @param string $name |
|
| 76 | 76 | * @param Operation $operation |
| 77 | 77 | * @param string $reference |
| 78 | 78 | * @param Registry $registry |