PHP Classes

File: vendor/gabordemooij/redbean/RedBeanPHP/Cursor/NullCursor.php

Recommend this page to a friend!
  Classes of Adrian M   upMVC   vendor/gabordemooij/redbean/RedBeanPHP/Cursor/NullCursor.php   Download  
File: vendor/gabordemooij/redbean/RedBeanPHP/Cursor/NullCursor.php
Role: Class source
Content type: text/plain
Description: Class source
Class: upMVC
Pure PHP web development without other frameworks
Author: By
Last change:
Date: 28 days ago
Size: 907 bytes
 

Contents

Class file image Download
<?php

namespace RedBeanPHP\Cursor;

use
RedBeanPHP\Cursor as Cursor;

/**
 * NULL Database Cursor
 * Implementation of the NULL Cursor.
 * Used for an empty BeanCollection. This Cursor
 * can be used for instance if a query fails but the interface
 * demands a cursor to be returned.
 *
 * @file RedBeanPHP/Cursor/NULLCursor.php
 * @author Gabor de Mooij and the RedBeanPHP Community
 * @license BSD/GPLv2
 *
 * @copyright
 * (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community.
 * This source file is subject to the BSD/GPLv2 License that is bundled
 * with this source code in the file license.txt.
 */
class NullCursor implements Cursor
{
   
/**
     * @see Cursor::getNextItem
     */
   
public function getNextItem()
    {
        return
NULL;
    }

   
/**
     * @see Cursor::reset
     */
   
public function reset()
    {
        return
NULL;
    }

   
/**
     * @see Cursor::close
     */
   
public function close()
    {
        return
NULL;
    }
}