1 | <?php namespace JSONAPI\Resource\Attributes; |
||
2 | |||
3 | use JetBrains\PhpStorm\Pure; |
||
4 | use JSONAPI\Resource\Attributes\AbstractFieldAttribute; |
||
5 | use ReflectionMethod; |
||
6 | use ReflectionProperty; |
||
7 | use ReflectionException; |
||
8 | |||
9 | /** |
||
10 | * Attribute used to mark method or property as JSON:API resource relation. |
||
11 | */ |
||
12 | #[\Attribute( |
||
13 | \Attribute::IS_REPEATABLE | |
||
14 | \Attribute::TARGET_METHOD | |
||
15 | \Attribute::TARGET_PROPERTY | |
||
16 | \Attribute::TARGET_CLASS |
||
17 | )] |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
18 | class Relationship extends AbstractFieldAttribute |
||
19 | { |
||
20 | const OPTIONS_NO_SELF_LINK = 'noSelfLink'; |
||
21 | const OPTIONS_NO_RELATED_LINK = 'noRelatedLink'; |
||
22 | } |