File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
use Swis \JsonApi \Client \Interfaces \DataInterface ;
8
8
9
9
/**
10
- * @template TKey of array-key
10
+ * @template TKey of int
11
11
* @template TValue of \Swis\JsonApi\Client\Interfaces\ItemInterface
12
12
*
13
13
* @extends \Illuminate\Support\Collection<TKey, TValue>
Original file line number Diff line number Diff line change 10
10
interface CollectionDocumentInterface extends DocumentInterface
11
11
{
12
12
/**
13
- * @return \Swis\JsonApi\Client\Collection<array-key , TItem>
13
+ * @return \Swis\JsonApi\Client\Collection<int , TItem>
14
14
*/
15
15
public function getData ();
16
16
}
Original file line number Diff line number Diff line change 14
14
interface ManyRelationInterface
15
15
{
16
16
/**
17
- * @param \Swis\JsonApi\Client\Collection<array-key , TItem>|null $data
17
+ * @param \Swis\JsonApi\Client\Collection<int , TItem>|null $data
18
18
* @return static
19
19
*/
20
20
public function setData (?Collection $ data );
21
21
22
22
/**
23
- * @return \Swis\JsonApi\Client\Collection<array-key , TItem>|null
23
+ * @return \Swis\JsonApi\Client\Collection<int , TItem>|null
24
24
*/
25
25
public function getData (): ?Collection ;
26
26
@@ -33,7 +33,7 @@ public function getIncluded(): Collection;
33
33
public function hasIncluded (): bool ;
34
34
35
35
/**
36
- * @param \Swis\JsonApi\Client\Collection<array-key , TItem> $included
36
+ * @param \Swis\JsonApi\Client\Collection<int , TItem> $included
37
37
* @return static
38
38
*/
39
39
public function associate (Collection $ included );
You can’t perform that action at this time.
0 commit comments