*/ namespace oat\tao\model\search; class ResultSet extends \ArrayIterator { protected $totalCount = 0; /** * ResultSet constructor. * * @param array $results * @param int $totalCount */ public function __construct(array $results, $totalCount) { parent::__construct($results); $this->totalCount = $totalCount; } /** * @return int */ public function getTotalCount() { return $this->totalCount; } }