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