Skip to content

Commit 21d5495

Browse files
author
Enno Woortmann
committed
Update throws tags
Remove unused use entries
1 parent 13e5d70 commit 21d5495

File tree

8 files changed

+20
-11
lines changed

8 files changed

+20
-11
lines changed

src/Model/RenderJob.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function __construct(string $fileName, string $classPath, string $classNa
4444
* @param GeneratorConfiguration $generatorConfiguration
4545
*
4646
* @throws FileSystemException
47+
* @throws RenderException
4748
*/
4849
public function render(string $destination, GeneratorConfiguration $generatorConfiguration): void
4950
{

src/Model/SchemaDefinition.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66

77
use PHPModelGenerator\Exception\PHPModelGeneratorException;
88
use PHPModelGenerator\Exception\SchemaException;
9-
use PHPModelGenerator\Model\Property\Property;
109
use PHPModelGenerator\Model\Property\PropertyInterface;
1110
use PHPModelGenerator\Model\Property\PropertyProxy;
12-
use PHPModelGenerator\Model\Validator\PropertyValidator;
1311
use PHPModelGenerator\PropertyProcessor\PropertyCollectionProcessor;
1412
use PHPModelGenerator\PropertyProcessor\PropertyFactory;
1513
use PHPModelGenerator\SchemaProcessor\SchemaProcessor;

src/PropertyProcessor/Property/ArrayProcessor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use PHPModelGenerator\Exception\InvalidArgumentException;
88
use PHPModelGenerator\Exception\SchemaException;
9-
use PHPModelGenerator\Model\Property\Property;
109
use PHPModelGenerator\Model\Property\PropertyInterface;
1110
use PHPModelGenerator\Model\Validator\PropertyTemplateValidator;
1211
use PHPModelGenerator\Model\Validator\PropertyValidator;

src/PropertyProcessor/Property/MultiTypeProcessor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace PHPModelGenerator\PropertyProcessor\Property;
66

77
use PHPModelGenerator\Exception\InvalidArgumentException;
8+
use PHPModelGenerator\Exception\SchemaException;
89
use PHPModelGenerator\Model\Property\PropertyInterface;
910
use PHPModelGenerator\Model\Schema;
1011
use PHPModelGenerator\Model\Validator\PropertyValidator;
@@ -37,6 +38,8 @@ class MultiTypeProcessor extends AbstractValueProcessor
3738
* @param PropertyCollectionProcessor $propertyCollectionProcessor
3839
* @param SchemaProcessor $schemaProcessor
3940
* @param Schema $schema
41+
*
42+
* @throws SchemaException
4043
*/
4144
public function __construct(
4245
PropertyProcessorFactory $propertyProcessorFactory,

src/PropertyProcessor/Property/StringProcessor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ class StringProcessor extends AbstractTypedValueProcessor
2424

2525
/**
2626
* @param PropertyInterface $property
27-
* @param array $propertyData
27+
* @param array $propertyData
28+
*
29+
* @throws SchemaException
2830
*/
2931
protected function generateValidators(PropertyInterface $property, array $propertyData): void
3032
{

src/PropertyProcessor/PropertyFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace PHPModelGenerator\PropertyProcessor;
66

7+
use PHPModelGenerator\Exception\SchemaException;
78
use PHPModelGenerator\Model\Property\PropertyInterface;
89
use PHPModelGenerator\Model\Schema;
910
use PHPModelGenerator\SchemaProcessor\SchemaProcessor;
@@ -36,6 +37,7 @@ public function __construct()
3637
* @param array $propertyStructure
3738
*
3839
* @return PropertyInterface
40+
* @throws SchemaException
3941
*/
4042
public function create(
4143
PropertyCollectionProcessor $propertyCollectionProcessor,

src/SchemaProcessor/RenderQueue.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44

55
namespace PHPModelGenerator\SchemaProcessor;
66

7+
use PHPModelGenerator\Exception\FileSystemException;
8+
use PHPModelGenerator\Exception\RenderException;
79
use PHPModelGenerator\Model\GeneratorConfiguration;
810
use PHPModelGenerator\Model\RenderJob;
911

12+
/**
13+
* Class RenderQueue
14+
*
15+
* @package PHPModelGenerator\SchemaProcessor
16+
*/
1017
class RenderQueue
1118
{
1219
/** @var RenderJob[] */
@@ -27,8 +34,11 @@ public function addRenderJob(RenderJob $renderJob): self
2734
/**
2835
* Render all collected jobs of the RenderProxy and clear the queue
2936
*
30-
* @param string $destination
37+
* @param string $destination
3138
* @param GeneratorConfiguration $generatorConfiguration
39+
*
40+
* @throws FileSystemException
41+
* @throws RenderException
3242
*/
3343
public function execute(string $destination, GeneratorConfiguration $generatorConfiguration): void
3444
{

src/SchemaProcessor/SchemaProcessor.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace PHPModelGenerator\SchemaProcessor;
66

7-
use PHPModelGenerator\Exception\FileSystemException;
87
use PHPModelGenerator\Exception\SchemaException;
98
use PHPModelGenerator\Model\GeneratorConfiguration;
109
use PHPModelGenerator\Model\RenderJob;
@@ -59,7 +58,6 @@ public function __construct(
5958
*
6059
* @param string $jsonSchemaFile
6160
*
62-
* @throws FileSystemException
6361
* @throws SchemaException
6462
*/
6563
public function process(string $jsonSchemaFile): void
@@ -85,7 +83,6 @@ public function process(string $jsonSchemaFile): void
8583
* @param array $parentDefinitions If a nested object of a schema is processed import the definitions of the parent
8684
* schema to make them available for the nested schema as well
8785
*
88-
* @throws FileSystemException
8986
* @throws SchemaException
9087
*/
9188
public function processSchema(
@@ -108,9 +105,6 @@ public function processSchema(
108105
* @param string $className
109106
* @param array $structure
110107
* @param array $parentDefinitions
111-
*
112-
* @throws FileSystemException
113-
* @throws SchemaException
114108
*/
115109
protected function generateModel(
116110
string $classPath,

0 commit comments

Comments
 (0)