Skip to content

Commit 8e05e19

Browse files
committed
Make Jobs a generator (#19)
Switch from IterableCollection to PaginatedListGenerator, so that jobs can be iterated over without having to wait for all results.
1 parent ea05806 commit 8e05e19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Conf/Jobs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Scriptotek\Alma\Conf;
44

55
use Scriptotek\Alma\Client;
6-
use Scriptotek\Alma\Model\IterableCollection;
6+
use Scriptotek\Alma\Model\PaginatedListGenerator;
77
use Scriptotek\Alma\Model\SimplePaginatedList;
88
use Scriptotek\Alma\Model\ReadOnlyArrayAccess;
99
use Scriptotek\Alma\Conf\Job;
@@ -14,7 +14,7 @@
1414
class Jobs extends SimplePaginatedList implements \ArrayAccess, \Countable, \Iterator
1515
{
1616
use ReadOnlyArrayAccess;
17-
use IterableCollection;
17+
use PaginatedListGenerator;
1818

1919
/**
2020
* Job constructor.

0 commit comments

Comments
 (0)