| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function findOneByIdentifier(string $identifier) |
||
| 21 | { |
||
| 22 | $queryBuilder = $this->getQueryBuilder(); |
||
| 23 | $rows = $queryBuilder->select('*') |
||
| 24 | ->from($this->getTableName()) |
||
| 25 | ->where( |
||
| 26 | $queryBuilder->expr()->eq('identifier', $queryBuilder->createNamedParameter($identifier)) |
||
| 27 | ) |
||
| 28 | ->execute() |
||
| 29 | ->fetchAll(); |
||
| 30 | |||
| 31 | return $rows[0] ?? null; |
||
| 32 | } |
||
| 33 | |||
| 44 |