Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793143
EmptyDatabaseResult.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
558 B
Referenced Files
None
Subscribers
None
EmptyDatabaseResult.php
View Options
<?php
namespace
Keruald\Database\Result
;
use
EmptyIterator
;
use
Traversable
;
/**
* Represents an empty database result, independent of the used database.
*/
class
EmptyDatabaseResult
extends
DatabaseResult
{
///
/// DatabaseResult implementation
///
public
function
numRows
()
:
int
{
return
0
;
}
public
function
fetchRow
()
:
?
array
{
return
null
;
}
///
/// IteratorAggregate implementation
///
public
function
getIterator
()
:
Traversable
{
return
new
EmptyIterator
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 21:39 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2437180
Default Alt Text
EmptyDatabaseResult.php (558 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment