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
85 lines
1.6 KiB
2 years ago
|
<?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
|
||
|
*/
|
||
|
|
||
|
|
||
10 months ago
|
namespace Phacil\Framework\Databases\Api\Object;
|
||
2 years ago
|
|
||
|
/**
|
||
11 months ago
|
* A Database result object with all stored data
|
||
|
* @since 2.0.0
|
||
2 years ago
|
* @property int $num_rows
|
||
11 months ago
|
* @property \Phacil\Framework\Databases\Object\Item $row
|
||
|
* @property \Phacil\Framework\Databases\Object\Item[] $rows
|
||
2 years ago
|
* @package Phacil\Framework\Databases\Object
|
||
|
*/
|
||
11 months ago
|
interface ResultInterface extends \Countable, \ArrayAccess, \Traversable {
|
||
2 years ago
|
/**
|
||
|
*
|
||
|
* @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
|
||
11 months ago
|
* @return \Phacil\Framework\Databases\Object\Item
|
||
2 years ago
|
*/
|
||
|
public function getRow($numRow = false);
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param int $num
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function setNumRows($num);
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @return int
|
||
|
*/
|
||
|
public function getNumRows();
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param int $numRow
|
||
11 months ago
|
* @return \Phacil\Framework\Databases\Object\Item[]|\Phacil\Framework\Databases\Object\Item
|
||
2 years ago
|
*/
|
||
|
public function getData($numRow = false);
|
||
2 years ago
|
|
||
|
/**
|
||
|
*
|
||
10 months ago
|
* @return \Phacil\Framework\Databases\Api\Object\ResultInterface
|
||
2 years ago
|
*/
|
||
|
public function __toObject();
|
||
|
|
||
11 months ago
|
/**
|
||
|
*
|
||
|
* @return \Phacil\Framework\Databases\Object\Item[]
|
||
|
*/
|
||
|
public function __toArray();
|
||
|
|
||
2 years ago
|
/**
|
||
|
*
|
||
|
* @return \Phacil\Framework\Databases\Object\Item[]
|
||
|
*/
|
||
|
public function getItems();
|
||
2 years ago
|
}
|