Skip to content

Commit 57ff962

Browse files
authored
Ensure that all internal classes of the Code Generator are tagged (#1487)
1 parent af7434a commit 57ff962

34 files changed

+88
-2
lines changed

src/CodeGenerator/src/Command/GenerateCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
* Update an existing response class or API client method.
3131
*
3232
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
33+
*
34+
* @internal
3335
*/
3436
#[AsCommand(name: 'generate', description: 'Create or update API client methods.', aliases: ['update'])]
3537
class GenerateCommand extends Command

src/CodeGenerator/src/Definition/ErrorWaiterAcceptor.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class ErrorWaiterAcceptor extends WaiterAcceptor
811
{
912
public function getError(): ExceptionShape

src/CodeGenerator/src/Definition/Example.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class Example
811
{
912
/**

src/CodeGenerator/src/Definition/ExceptionShape.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class ExceptionShape extends StructureShape
811
{
912
public function hasError(): bool

src/CodeGenerator/src/Definition/Hook.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class Hook
811
{
912
/**

src/CodeGenerator/src/Definition/ListMember.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class ListMember extends Member
811
{
912
}

src/CodeGenerator/src/Definition/ListShape.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class ListShape extends Shape
811
{
912
public function getMember(): ListMember

src/CodeGenerator/src/Definition/MapKey.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class MapKey extends Member
811
{
912
}

src/CodeGenerator/src/Definition/MapShape.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class MapShape extends Shape
811
{
912
public function getValue(): MapValue

src/CodeGenerator/src/Definition/MapValue.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class MapValue extends Member
811
{
912
}

src/CodeGenerator/src/Definition/Member.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class Member
811
{
912
/**

src/CodeGenerator/src/Definition/Operation.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class Operation
811
{
912
/**

src/CodeGenerator/src/Definition/Pagination.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class Pagination
811
{
912
/**

src/CodeGenerator/src/Definition/ServiceDefinition.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* A wrapper for the service definition array.
1111
*
1212
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
13+
*
14+
* @internal
1315
*/
1416
class ServiceDefinition
1517
{

src/CodeGenerator/src/Definition/Shape.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class Shape
811
{
912
/**

src/CodeGenerator/src/Definition/StructureMember.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class StructureMember extends Member
811
{
912
public function getName(): string

src/CodeGenerator/src/Definition/StructureShape.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class StructureShape extends Shape
811
{
912
/**

src/CodeGenerator/src/Definition/Waiter.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class Waiter
811
{
912
/**

src/CodeGenerator/src/Definition/WaiterAcceptor.php

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

55
namespace AsyncAws\CodeGenerator\Definition;
66

7+
/**
8+
* @internal
9+
*/
710
class WaiterAcceptor
811
{
912
public const MATCHER_STATUS = 'status';

src/CodeGenerator/src/File/Cache.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
namespace AsyncAws\CodeGenerator\File;
66

77
/**
8-
* Provides methods to store and load cached data in a multi-concurent system.
8+
* Provides methods to store and load cached data in a multi-concurrent system.
99
*
1010
* @author Jérémy Derussé <jeremy@derusse.com>
11+
*
12+
* @internal
1113
*/
1214
class Cache
1315
{

src/CodeGenerator/src/File/CachedFileDumper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
/**
88
* DumpFile only when it has not been modified.
9-
* This class takes into account that a post-process can alter the content of the file (php-cs-fier).
9+
* This class takes into account that a post-process can alter the content of the file (php-cs-fixer).
1010
*
1111
* @author Jérémy Derussé <jeremy@derusse.com>
12+
*
13+
* @internal
1214
*/
1315
class CachedFileDumper extends FileDumper
1416
{

src/CodeGenerator/src/File/ClassWriter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Takes a namespace definition and create a file form it.
1111
*
1212
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
13+
*
14+
* @internal
1315
*/
1416
class ClassWriter
1517
{

src/CodeGenerator/src/File/ComposerWriter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Update composer.json requirements.
99
*
1010
* @author Jérémy Derussé <jeremy@derusse.com>
11+
*
12+
* @internal
1113
*/
1214
class ComposerWriter
1315
{

src/CodeGenerator/src/File/FileDumper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* Dump and validate a php file.
1313
*
1414
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
15+
*
16+
* @internal
1517
*/
1618
class FileDumper
1719
{

src/CodeGenerator/src/Generator/ApiGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
*
1414
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1515
* @author Jérémy Derussé <jeremy@derusse.com>
16+
*
17+
* @internal
1618
*/
1719
class ApiGenerator
1820
{

src/CodeGenerator/src/Generator/Composer/RequirementsRegistry.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace AsyncAws\CodeGenerator\Generator\Composer;
44

5+
/**
6+
* @internal
7+
*/
58
class RequirementsRegistry
69
{
710
/**

src/CodeGenerator/src/Generator/Naming/ClassName.php

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

77
/**
88
* @author Jérémy Derussé <jeremy@derusse.com>
9+
*
10+
* @internal
911
*/
1012
final class ClassName
1113
{

src/CodeGenerator/src/Generator/Naming/NamespaceRegistry.php

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

1212
/**
1313
* @author Jérémy Derussé <jeremy@derusse.com>
14+
*
15+
* @internal
1416
*/
1517
final class NamespaceRegistry
1618
{

src/CodeGenerator/src/Generator/PhpGenerator/ClassBuilder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* Wrapper for Nette PhpNamespace and ClassType.
1616
*
1717
* @author Jérémy Derussé <jeremy@derusse.com>
18+
*
19+
* @internal
1820
*/
1921
class ClassBuilder
2022
{

src/CodeGenerator/src/Generator/PhpGenerator/ClassFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* This is a slightly modified version of \Nette\PhpGenerator\Factory
2121
*
2222
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
23+
*
24+
* @internal
2325
*/
2426
class ClassFactory
2527
{

src/CodeGenerator/src/Generator/PhpGenerator/ClassRegistry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* Generate a ClassBuilder and maintains the list of generated classes.
1212
*
1313
* @author Jérémy Derussé <jeremy@derusse.com>
14+
*
15+
* @internal
1416
*/
1517
class ClassRegistry
1618
{

src/CodeGenerator/src/Generator/RequestSerializer/Serializer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* This will generate code to serialize request Input to a string. Ie to create request body.
1212
*
1313
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
14+
*
15+
* @internal
1416
*/
1517
interface Serializer
1618
{

src/CodeGenerator/src/Generator/ResponseParser/Parser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* This will generate code to parse a HTTP response body into a Result.
1111
*
1212
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
13+
*
14+
* @internal
1315
*/
1416
interface Parser
1517
{

src/CodeGenerator/src/Generator/ServiceGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
*
1717
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1818
* @author Jérémy Derussé <jeremy@derusse.com>
19+
*
20+
* @internal
1921
*/
2022
class ServiceGenerator
2123
{

0 commit comments

Comments
 (0)