mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
29 lines
No EOL
510 B
PHP
29 lines
No EOL
510 B
PHP
<?php
|
|
namespace Grav\Plugin\TNTSearch;
|
|
|
|
class GravResultObject
|
|
{
|
|
/** @var array */
|
|
protected $items;
|
|
/** @var int */
|
|
protected $counter;
|
|
|
|
/**
|
|
* GravResultObject constructor.
|
|
* @param array $items
|
|
*/
|
|
public function __construct($items)
|
|
{
|
|
$this->counter = 0;
|
|
$this->items = $items;
|
|
}
|
|
|
|
/**
|
|
* @param array $options
|
|
* @return array
|
|
*/
|
|
public function fetch($options)
|
|
{
|
|
return $this->items[$this->counter++];
|
|
}
|
|
} |