Skip to content

Commit 111451f

Browse files
authored
Merge pull request #1529 from mbabker/annotations-marker-interface
Introduce a marker interface for annotation/attribute classes
2 parents c586bf6 + 50d7d6e commit 111451f

32 files changed

+70
-87
lines changed

src/Annotation/AccessType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
1212
*/
1313
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_PROPERTY)]
14-
final class AccessType
14+
final class AccessType implements SerializerAttribute
1515
{
1616
use AnnotationUtilsTrait;
1717

src/Annotation/Accessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
1212
*/
1313
#[\Attribute(\Attribute::TARGET_PROPERTY)]
14-
final class Accessor
14+
final class Accessor implements SerializerAttribute
1515
{
1616
use AnnotationUtilsTrait;
1717

src/Annotation/AccessorOrder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
1414
*/
1515
#[\Attribute(\Attribute::TARGET_CLASS)]
16-
final class AccessorOrder
16+
final class AccessorOrder implements SerializerAttribute
1717
{
1818
use AnnotationUtilsTrait;
1919

src/Annotation/Discriminator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @Target("CLASS")
1010
*/
1111
#[\Attribute(\Attribute::TARGET_CLASS)]
12-
class Discriminator
12+
class Discriminator implements SerializerAttribute
1313
{
1414
use AnnotationUtilsTrait;
1515

src/Annotation/Exclude.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @Target({"PROPERTY", "CLASS", "METHOD", "ANNOTATION"})
1010
*/
1111
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD)]
12-
final class Exclude
12+
final class Exclude implements SerializerAttribute
1313
{
1414
use AnnotationUtilsTrait;
1515

src/Annotation/ExclusionPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @Target("CLASS")
1212
*/
1313
#[\Attribute(\Attribute::TARGET_CLASS)]
14-
final class ExclusionPolicy
14+
final class ExclusionPolicy implements SerializerAttribute
1515
{
1616
use AnnotationUtilsTrait;
1717

src/Annotation/Expose.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
1010
*/
1111
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
12-
final class Expose
12+
final class Expose implements SerializerAttribute
1313
{
1414
use AnnotationUtilsTrait;
1515

src/Annotation/Groups.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @Target({"PROPERTY","METHOD","ANNOTATION"})
1010
*/
1111
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
12-
final class Groups
12+
final class Groups implements SerializerAttribute
1313
{
1414
use AnnotationUtilsTrait;
1515

src/Annotation/Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
* @Target({"PROPERTY","METHOD","ANNOTATION"})
1010
*/
1111
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
12-
final class Inline
12+
final class Inline implements SerializerAttribute
1313
{
1414
}

src/Annotation/MaxDepth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @Target({"PROPERTY","METHOD","ANNOTATION"})
1010
*/
1111
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
12-
final class MaxDepth
12+
final class MaxDepth implements SerializerAttribute
1313
{
1414
use AnnotationUtilsTrait;
1515

0 commit comments

Comments
 (0)