Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
52 | 4 | public function importedIdExists(string $importedId): bool |
|
53 | { |
||
54 | 4 | $connection = $this->getEntityManager()->getConnection(); |
|
55 | 4 | $count = $connection->fetchOne('SELECT COUNT(*) > 0 FROM transaction_line WHERE imported_id = :importedId', ['importedId' => $importedId]); |
|
56 | |||
57 | 4 | return (bool) $count; |
|
58 | } |
||
60 |