Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
40 | 1 | public function findByDebitOrCredit(Account $account): array |
|
41 | { |
||
42 | 1 | $qb = $this->createQueryBuilder('line') |
|
43 | 1 | ->where('line.debit = :account') |
|
44 | 1 | ->orWhere('line.credit = :account') |
|
45 | 1 | ->setParameter('account', $account); |
|
46 | |||
47 | 1 | $query = $qb->getQuery(); |
|
48 | |||
49 | 1 | $result = $query->getResult(); |
|
50 | |||
51 | 1 | return $result; |
|
52 | } |
||
54 |