| @@ 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} |
|
| @@ 161-167 (lines=7) @@ | ||
| 158 | /** |
|
| 159 | * {@inheritdoc} |
|
| 160 | */ |
|
| 161 | public function __invoke() |
|
| 162 | { |
|
| 163 | $statement = $this->table->getDatabase()->execute((string) $this, $this->marks); |
|
| 164 | $statement->setFetchMode(PDO::FETCH_ASSOC); |
|
| 165 | ||
| 166 | return $statement; |
|
| 167 | } |
|
| 168 | ||
| 169 | /** |
|
| 170 | * {@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. |
|