Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
17 | 1 | public function findByDebitOrCredit(Account $account): array |
|
18 | { |
||
19 | 1 | $qb = $this->createQueryBuilder('line') |
|
20 | 1 | ->where('line.debit = :account') |
|
21 | 1 | ->orWhere('line.credit = :account') |
|
22 | 1 | ->setParameter('account', $account); |
|
23 | |||
24 | 1 | $query = $qb->getQuery(); |
|
25 | |||
26 | 1 | $result = $query->getResult(); |
|
27 | |||
28 | 1 | return $result; |
|
29 | } |
||
31 |