| @@ 33-39 (lines=7) @@ | ||
| 30 | /** |
|
| 31 | * {@inheritdoc} |
|
| 32 | */ |
|
| 33 | public function __invoke() |
|
| 34 | { |
|
| 35 | $statement = $this->table->getDatabase()->execute((string) $this, $this->marks); |
|
| 36 | $statement->setFetchMode(PDO::FETCH_NUM); |
|
| 37 | ||
| 38 | return $statement; |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * {@inheritdoc} |
|
| @@ 47-53 (lines=7) @@ | ||
| 44 | /** |
|
| 45 | * {@inheritdoc} |
|
| 46 | */ |
|
| 47 | public function __invoke() |
|
| 48 | { |
|
| 49 | $statement = $this->table->getDatabase()->execute((string) $this, $this->marks); |
|
| 50 | $statement->setFetchMode(PDO::FETCH_NUM); |
|
| 51 | ||
| 52 | return $statement; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Build and return the query. |
|
| @@ 199-205 (lines=7) @@ | ||
| 196 | /** |
|
| 197 | * {@inheritdoc} |
|
| 198 | */ |
|
| 199 | public function __invoke() |
|
| 200 | { |
|
| 201 | $statement = $this->table->getDatabase()->execute((string) $this, $this->marks); |
|
| 202 | $statement->setFetchMode(PDO::FETCH_ASSOC); |
|
| 203 | ||
| 204 | return $statement; |
|
| 205 | } |
|
| 206 | ||
| 207 | /** |
|
| 208 | * {@inheritdoc} |
|