1: <?php
2:
3: namespace RedBeanPHP\Cursor;
4:
5: use RedBeanPHP\Cursor as Cursor;
6:
7: /**
8: * NULL Database Cursor
9: * Implementation of the NULL Cursor.
10: * Used for an empty BeanCollection.
11: *
12: * @file RedBeanPHP/Cursor/NULLCursor.php
13: * @author Gabor de Mooij and the RedBeanPHP Community
14: * @license BSD/GPLv2
15: *
16: * @copyright
17: * (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community.
18: * This source file is subject to the BSD/GPLv2 License that is bundled
19: * with this source code in the file license.txt.
20: */
21: class NullCursor implements Cursor
22: {
23: /**
24: * @see Cursor::getNextItem
25: */
26: public function getNextItem()
27: {
28: return NULL;
29: }
30:
31: /**
32: * @see Cursor::close
33: */
34: public function close()
35: {
36: return NULL;
37: }
38: }
39: