6 * Interface for enhanced iteration support.
8 * @author Alexander Ebert
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\Data
13 interface ITraversableObject
extends \SeekableIterator
16 * Sets internal iterator pointer based upon related object id.
18 * @param int $objectID
20 public function seekTo($objectID);
23 * Searches a specific object by object id and setting internal iterator
24 * pointer to found item. Returns `null` if object id is not found.
26 * @param int $objectID
27 * @return DatabaseObject|null
29 public function search($objectID);