7use InvalidArgumentException;
40 if (
$result instanceof
self ) {
41 $this->result =
$result->result;
45 throw new InvalidArgumentException(
"Null result resource provided" );
60 if (
$res instanceof
self ) {
61 if (
$res->result ===
null ) {
62 throw new RuntimeException(
"The result resource was already freed" );
72 return $this->
getDB()->numRows( $this );
76 return $this->
getDB()->fetchObject( $this );
80 return $this->
getDB()->fetchRow( $this );
95 $this->
getDB()->dataSeek( $this, 0 );
98 $this->currentRow =
null;
102 if ( $this->currentRow ===
null ) {
121 return $this->
current() !==
false;
130 throw new RuntimeException(
"Database handle was already freed" );
140class_alias( ResultWrapper::class,
'ResultWrapper' );