Skip to content

Commit e351af4

Browse files
authored
Set DTO classes Final (#467)
* Make DTO objects final * Regenerate code * Add entry in changelogs
1 parent 6f4625c commit e351af4

11 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Moved value objects to a dedicated namespace.
88
- Results' `populateResult()` has only one argument. It takes a `AsyncAws\Core\Response`.
99
- Using `DateTimeImmutable` instead of `DateTimeInterface`
10+
- The `AsyncAws\Lambda\Enum\*`, `AsyncAws\Lambda\Input\*` and `AsyncAws\Lambda\ValueObject*` classes are marked final.
1011

1112
### Removed
1213

src/Enum/InvocationType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace AsyncAws\Lambda\Enum;
44

5-
class InvocationType
5+
final class InvocationType
66
{
77
public const DRY_RUN = 'DryRun';
88
public const EVENT = 'Event';

src/Enum/LogType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace AsyncAws\Lambda\Enum;
44

5-
class LogType
5+
final class LogType
66
{
77
public const NONE = 'None';
88
public const TAIL = 'Tail';

src/Enum/Runtime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace AsyncAws\Lambda\Enum;
44

5-
class Runtime
5+
final class Runtime
66
{
77
public const DOTNETCORE_1_0 = 'dotnetcore1.0';
88
public const DOTNETCORE_2_0 = 'dotnetcore2.0';

src/Input/AddLayerVersionPermissionRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use AsyncAws\Core\Request;
88
use AsyncAws\Core\Stream\StreamFactory;
99

10-
class AddLayerVersionPermissionRequest implements Input
10+
final class AddLayerVersionPermissionRequest implements Input
1111
{
1212
/**
1313
* The name or Amazon Resource Name (ARN) of the layer.

src/Input/InvocationRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use AsyncAws\Lambda\Enum\InvocationType;
1010
use AsyncAws\Lambda\Enum\LogType;
1111

12-
class InvocationRequest implements Input
12+
final class InvocationRequest implements Input
1313
{
1414
/**
1515
* The name of the Lambda function, version, or alias.

src/Input/ListLayerVersionsRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use AsyncAws\Core\Stream\StreamFactory;
99
use AsyncAws\Lambda\Enum\Runtime;
1010

11-
class ListLayerVersionsRequest implements Input
11+
final class ListLayerVersionsRequest implements Input
1212
{
1313
/**
1414
* A runtime identifier. For example, `go1.x`.

src/Input/PublishLayerVersionRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use AsyncAws\Lambda\Enum\Runtime;
1010
use AsyncAws\Lambda\ValueObject\LayerVersionContentInput;
1111

12-
class PublishLayerVersionRequest implements Input
12+
final class PublishLayerVersionRequest implements Input
1313
{
1414
/**
1515
* The name or Amazon Resource Name (ARN) of the layer.

src/ValueObject/LayerVersionContentInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace AsyncAws\Lambda\ValueObject;
44

5-
class LayerVersionContentInput
5+
final class LayerVersionContentInput
66
{
77
/**
88
* The Amazon S3 bucket of the layer archive.

src/ValueObject/LayerVersionContentOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace AsyncAws\Lambda\ValueObject;
44

5-
class LayerVersionContentOutput
5+
final class LayerVersionContentOutput
66
{
77
/**
88
* A link to the layer archive in Amazon S3 that is valid for 10 minutes.

0 commit comments

Comments
 (0)