src/AttributeRepositories/MySQLAttributeRepository.php 1 location
|
@@ 49-54 (lines=6) @@
|
| 46 |
|
* @param string $key |
| 47 |
|
* @return bool |
| 48 |
|
*/ |
| 49 |
|
public function has($key) { |
| 50 |
|
$this->hasService->bindValue('key', $key); |
| 51 |
|
$this->hasService->execute(); |
| 52 |
|
$count = $this->hasService->fetchColumn(0); |
| 53 |
|
return $count > 0; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
/** |
| 57 |
|
* @param string $key |
src/AttributeRepositories/SqliteAttributeRepository.php 1 location
|
@@ 48-53 (lines=6) @@
|
| 45 |
|
* @param string $key |
| 46 |
|
* @return bool |
| 47 |
|
*/ |
| 48 |
|
public function has($key) { |
| 49 |
|
$this->hasService->bindValue('key', $key); |
| 50 |
|
$this->hasService->execute(); |
| 51 |
|
$count = $this->hasService->fetchColumn(0); |
| 52 |
|
return $count > 0; |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
/** |
| 56 |
|
* @param string $key |