5484645b2a41dbfc4cc72c315e60ce68b29a3dfd
[yaffs-website] / vendor / gabordemooij / redbean / RedBeanPHP / Cursor / NullCursor.php
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. This Cursor
11  * can be used for instance if a query fails but the interface
12  * demands a cursor to be returned.
13  *
14  * @file    RedBeanPHP/Cursor/NULLCursor.php
15  * @author  Gabor de Mooij and the RedBeanPHP Community
16  * @license BSD/GPLv2
17  *
18  * @copyright
19  * (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community.
20  * This source file is subject to the BSD/GPLv2 License that is bundled
21  * with this source code in the file license.txt.
22  */
23 class NullCursor implements Cursor
24 {
25         /**
26          * @see Cursor::getNextItem
27          */
28         public function getNextItem()
29         {
30                 return NULL;
31         }
32
33         /**
34          * @see Cursor::close
35          */
36         public function close()
37         {
38                 return NULL;
39         }
40 }