| 1 | <?php |
||
| 7 | class Select extends Common |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string $returnType PHP Type used for return result |
||
| 11 | */ |
||
| 12 | protected $returnType = ''; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Getter accessor to returnType property |
||
| 16 | * |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | public function getReturnType(): string |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Setter accessor to property returnType |
||
| 26 | * |
||
| 27 | * @param string $returnType The new return type value |
||
| 28 | * |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public function setReturnType(string $returnType): self |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Return the PDO constant for the returnType declared |
||
| 39 | * |
||
| 40 | * @return integer |
||
| 41 | */ |
||
| 42 | protected function obtainPdoFetchType(): int |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Fetch one row of the result |
||
| 53 | * |
||
| 54 | * @return mixed |
||
| 55 | */ |
||
| 56 | public function fetchRow() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Fetch all rows returned by the request |
||
| 64 | * |
||
| 65 | * @return \Generator |
||
| 66 | */ |
||
| 67 | public function fetchAll(): \Generator |
||
| 75 | } |
||
| 76 |