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.

77 lines
1.3 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\Object;
/**
* @property int $num_rows
* @property array $row
* @property array $rows
* @package Phacil\Framework\Databases\Object
*/
2 years ago
interface ResultInterface extends \Countable, \IteratorAggregate {
/**
*
* @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\Object\Item[]
*/
public function __toObject();
/**
*
* @return \Phacil\Framework\Databases\Object\Item[]
*/
public function getItems();
}