File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -74,21 +74,21 @@ public static function fromResources(ResourceObject ...$resources): self
74
74
return $ doc ;
75
75
}
76
76
77
- public static function fromIdentifier (ResourceIdentifier $ identifier )
77
+ public static function fromIdentifier (ResourceIdentifier $ identifier ): self
78
78
{
79
79
$ doc = new self ;
80
80
$ doc ->data = new SingleIdentifierData ($ identifier );
81
81
return $ doc ;
82
82
}
83
83
84
- public static function fromIdentifiers (ResourceIdentifier ... $ identifiers )
84
+ public static function fromIdentifiers (ResourceIdentifier ... $ identifiers ): self
85
85
{
86
86
$ doc = new self ;
87
87
$ doc ->data = new MultiIdentifierData (...$ identifiers );
88
88
return $ doc ;
89
89
}
90
90
91
- public static function nullDocument ()
91
+ public static function nullDocument (): self
92
92
{
93
93
$ doc = new self ;
94
94
$ doc ->data = new NullData ();
Original file line number Diff line number Diff line change 4
4
namespace JsonApiPhp \JsonApi \Test \Document ;
5
5
6
6
use JsonApiPhp \JsonApi \Document ;
7
- use JsonApiPhp \JsonApi \Document \Link \Link ;
8
7
use JsonApiPhp \JsonApi \Document \Meta ;
9
8
use JsonApiPhp \JsonApi \Document \Resource \Linkage \MultiLinkage ;
10
9
use JsonApiPhp \JsonApi \Document \Resource \Linkage \SingleLinkage ;
You can’t perform that action at this time.
0 commit comments