File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
tests/FreeElephants/JsonApi/DTO/Example Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,14 @@ Union types support for relationships in PHP 8.
1919## Usage
2020
2121Extend super types in your own json api documents and it's parts:
22- - \FreeElephants\JsonApiToolkit \DTO\AbstractAttributes
23- - \FreeElephants\JsonApiToolkit \DTO\AbstractDocument
24- - \FreeElephants\JsonApiToolkit \DTO\AbstractRelationships
25- - \FreeElephants\JsonApiToolkit \DTO\AbstractResourceObject
22+ - \FreeElephants\JsonApi \DTO\AbstractAttributes
23+ - \FreeElephants\JsonApi \DTO\AbstractDocument
24+ - \FreeElephants\JsonApi \DTO\AbstractRelationships
25+ - \FreeElephants\JsonApi \DTO\AbstractResourceObject
2626
2727And use as properties types:
28- - \FreeElephants\JsonApiToolkit \DTO\RelationshipToOne
29- - \FreeElephants\JsonApiToolkit \DTO\ResourceIdentifierObject
28+ - \FreeElephants\JsonApi \DTO\RelationshipToOne
29+ - \FreeElephants\JsonApi \DTO\ResourceIdentifierObject
3030
3131See tests/ for more examples.
3232
Original file line number Diff line number Diff line change 44
55use FreeElephants \JsonApi \DTO \AbstractAttributes ;
66
7+ /**
8+ * @internal
9+ */
710class Attributes extends AbstractAttributes
811{
912 public string $ foo ;
Original file line number Diff line number Diff line change 55use FreeElephants \JsonApi \DTO \AbstractRelationships ;
66use FreeElephants \JsonApi \DTO \RelationshipToOne ;
77
8+ /**
9+ * @internal
10+ */
811class OneRelationships extends AbstractRelationships
912{
1013 public RelationshipToOne $ one ;
Original file line number Diff line number Diff line change 55use FreeElephants \JsonApi \DTO \AbstractRelationships ;
66use FreeElephants \JsonApi \DTO \RelationshipToOne ;
77
8+ /**
9+ * @internal
10+ */
811class TwoRelationships extends AbstractRelationships
912{
1013 public RelationshipToOne $ two ;
You can’t perform that action at this time.
0 commit comments