A super easy PHP Framework for web development! https://github.com/exacti/phacil-framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.6 KiB

<?php
/**
* Copyright © 2023 ExacTI Technology Solutions. All rights reserved.
* GPLv3 General License.
* https://exacti.com.br
* Phacil PHP Framework - https://github.com/exacti/phacil-framework
*/
namespace Phacil\Framework\Databases\Api\Object;
/**
* A Database result object with all stored data
* @since 2.0.0
* @property int $num_rows
* @property \Phacil\Framework\Databases\Object\Item $row
* @property \Phacil\Framework\Databases\Object\Item[] $rows
* @package Phacil\Framework\Databases\Object
*/
interface ResultInterface extends \Countable, \ArrayAccess, \Traversable {
/**
*
* @param array $rows
* @return $this
*/
public function setRows($rows);
/**
*
* @return array
*/
public function getRows();
/**
*
* @param array $row
* @return $this
*/
public function setRow($row);
/**
*
* @param int $numRow
* @return \Phacil\Framework\Databases\Object\Item
*/
public function getRow($numRow = false);
/**
*
* @param int $num
* @return $this
*/
public function setNumRows($num);
/**
*
* @return int
*/
public function getNumRows();
/**
*
* @param int $numRow
* @return \Phacil\Framework\Databases\Object\Item[]|\Phacil\Framework\Databases\Object\Item
*/
public function getData($numRow = false);
2 years ago
/**
*
* @return \Phacil\Framework\Databases\Api\Object\ResultInterface
2 years ago
*/
public function __toObject();
/**
*
* @return \Phacil\Framework\Databases\Object\Item[]
*/
public function __toArray();
2 years ago
/**
*
* @return \Phacil\Framework\Databases\Object\Item[]
*/
public function getItems();
}