8 final class Iterator
implements \Iterator
29 * The current data entry
35 * Create a new iterator over $data returning \seekat\API instances
37 * @var API $api The endpoint
38 * @var array|object $data
40 function __construct(API
$api) {
42 $this->data
= (array) $api->export()["data"];
55 * Get the current data entry
64 if (list($key, $cur) = each($this->data
)) {
66 if ($this->api
->$key->exists("url", $url)) {
68 $this->cur
= $this->api
->withUrl($url)->withData($cur);
70 $this->cur
= $this->api
->$key->withData($cur);
79 return isset($this->cur
);
83 if (is_array($this->data
)) {