Inheritance diagram for Statement:Extends PDOStatement for fluency and logging.
Protected Properties | |
| DB | $db |
Public Methods | |
| $this | __invoke (array $args=null) |
| Fluent execution. More... | |
| string | __toString () |
| The query string. More... | |
| bool | execute ($args=null) |
| Logs. More... | |
| int | getId () |
lastInsertId() More... | |
Protected Methods | |
| __construct (DB $db) | |
| PDO requires this to be protected. More... | |
| $this __invoke | ( | array | $args = null | ) |
| string __toString | ( | ) |
The query string.
| bool execute | ( | $args = null | ) |
Logs.
PHP returns false instead of throwing if too many arguments were given. This checks for that and throws.
| array | $args |
| ArgumentCountError |
| int getId | ( | ) |
lastInsertId()