Completed
Pull Request — master (#131)
by De Cramer
05:13 queued 02:26
created

RecordQuery   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A filterByPlayerLogins() 0 5 1
1
<?php
2
3
namespace eXpansion\Bundle\LocalRecords\Model;
4
5
use eXpansion\Bundle\LocalRecords\Model\Base\RecordQuery as BaseRecordQuery;
6
use Propel\Runtime\ActiveQuery\Criteria;
7
8
/**
9
 * Skeleton subclass for performing query and update operations on the 'record' table.
10
 *
11
 *
12
 *
13
 * You should add additional methods to this class to meet the
14
 * application requirements.  This class will only be generated as
15
 * long as it does not already exist in the output directory.
16
 *
17
 */
18
class RecordQuery extends BaseRecordQuery
19
{
20
    /**
21
     * Filter by player logins
22
     *
23
     * @param string[] $logins
24
     */
25
    public function filterByPlayerLogins($logins)
26
    {
27
        $query = $this->joinWithPlayer();
28
        $query->filterBy('login', $logins, Criteria::IN);
29
    }
30
}
31