Laravel AT Protocol Client (alpha & unstable)

Implement Arrayable interface on Record and RecordCollection

Changed files
+6 -2
src
+2 -1
src/Data/Record.php
··· 8 8 * Generic wrapper for AT Protocol records. 9 9 * 10 10 * @template T 11 + * @implements Arrayable<string, mixed> 11 12 */ 12 - class Record 13 + class Record implements Arrayable 13 14 { 14 15 /** 15 16 * @param T $value
+4 -1
src/Data/RecordCollection.php
··· 2 2 3 3 namespace SocialDept\AtpClient\Data; 4 4 5 + use Illuminate\Contracts\Support\Arrayable; 6 + 5 7 /** 6 8 * Collection wrapper for paginated AT Protocol records. 7 9 * 8 10 * @template T 11 + * @implements Arrayable<string, mixed> 9 12 */ 10 - class RecordCollection 13 + class RecordCollection implements Arrayable 11 14 { 12 15 /** 13 16 * @param array<Record<T>> $records